TypeScript / webpack - you down with PnP? Yarn, you know me!
Yarn PnP is an innovation by the Yarn team designed to speed up module resolution by node. To quote the (excellent) docs:
The Node.js runtime.
View All TagsYarn PnP is an innovation by the Yarn team designed to speed up module resolution by node. To quote the (excellent) docs:
I'd been meaning to automate the npm publishing of ts-loader
for the longest time. I had attempted to use Travis to do this in the same way as fork-ts-checker-webpack-plugin
. Alas using secure environment variables in Travis has unfortunate implications for ts-loader's test pack.
Whilst things did improve by fiddling with Windows Defender it wasn't a 100% fix which makes me wary. Interestingly, VS Code was always open when I did experience the issue and I haven't experienced it when it's been closed. So it may be the cause. I've opened an issue for this against the VS Code repo - it sounds like other people may be affected as I was. Perhaps this is VS Code and not Windows Defender. Watch that space...
The issue was VS Code. The bug has now been fixed and shipped last night with VS Code 1.14.0. Yay!
I'm a member of the Definitely Typed team - and hopefully I won't be kicked out for writing this. My point is this: .d.ts
files should live with the package they provide typing information for, in npm / GitHub etc. Not separately.
I don't know about you but I personally feel that the following sentence may well be the saddest in the English language:
This is very probably the dullest title for a blog post I've ever come up with. Read on though folks - it's definitely going to pick up...
Every now and then something bites you unexpectedly. After a certain amount of pain, the answer comes to you and you know you want to save others from falling into the same deathtrap.
There I was minding my own business and having a play with a Gulp plugin called gulp-angular-templatecache. If you're not aware of it, it "Concatenates and registers AngularJS templates in the $templateCache". I was planning to use it so that all the views in an Angular app of mine were loaded up-front rather than on demand. (It's a first step in making an "offline-first" version of that particular app.)