3 ms·
I've never run across this, or indeed, heard of anyone have experienced this before. More details? I'm honestly curious.
by Lazare 11y ago
I've never run across this, or indeed, heard of anyone have experienced this before. More details? I'm honestly curious.
- hoodoof 11y agoOne of many examples http://andrewhfarmer.com/aws-sdk-with-webpack/ http://andrewhfarmer.com/aws-sdk-with-webpack/ Search google for webpack incompatible
- Lazare 11y agoThanks for the example.
- shados 11y agoIt happens all the time because most UMD implementations are broken and make incorrect assumptions, so you often have to follow the "Fix broken modules" steps on https://webpack.github.io/docs/shimming-modules.html https://webpack.github.io/docs/shimming-modules.html And if your package depends on a broken module, you're essentially SoL unless you make assumptions about the path NPM will install stuff and configure webpack to fix -that- one. That's more a problem with the state of broken UMD modules than Webpack itself though, but I've considered configuring webpack to ignore all AMD syntax quite a few times...
- hoodoof 11y agoYeah the line of thinking seems to be that everything else is broken, not webpack. And the module maintainers say "well it works with everything else except Webpack so webpack is broken, they should fix it." Seriously crap situation.
- spriggan3 11y agoBut people should code for Webpack or JSPM or require JS or whatever. A good solution should just work no matter how the lib was coded, if it doesn't then the solution isn't worth the investment.