News for hackers. Stuff that matters.
Re:Back End Apps with Webpack: Part I by TheAceOfHearts on Monday March 16, 2015 @02:23PM (#9213254)
I'm using webpack with iojs for an isomorphic react app, why don't you just add a regexp to ignore all non-relative modules?

I use the following regexp: /^[a-z\-0-9]+$/

Any reason to get the full module list over just using this regexp?

Re:Back End Apps with Webpack: Part I by jlongster on Monday March 16, 2015 @02:26PM (#9213274)
It feels hackier, and there is a downside: you can't alias non-relative modules because they are simply ignored. I've run into situations where I needed to alias something in node_modules because we preprocessed it and put it somewhere else.

But that works too!