webpack: Incompatible with unmodified lodash-es
When connecting to lodash-es, webpack and/or the babel-loader fails until you edit jsnext:main
to just main
- I have the babel-loader set to translate all modules (as I am using es6 across the board). For now, I’m just manually patching lodash-es in the node_modules directory, but it seems like this is probably just a simple issue in node dependency parsing.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 20 (17 by maintainers)
@sokra Is there a command line form of
resolve.packageMains
?Also, I’m noticing the cherry-picking (auto tree shaking) isn’t working for the edge version of lodash-es with webpack 2 (master branch)
First clone into
node_modules
:with test.js:
then:
Also using the
-p
param failed with: