3 ms·
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
by TheAceOfHearts 12y ago
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?
- jlongster 12y agoIt 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!