webpack-contrib / bundle-loader

Bundle Loader
MIT License
658 stars 59 forks source link

`name` is incompatible with Webpack 4 #71

Closed jods4 closed 6 years ago

jods4 commented 6 years ago

bundle-loader crashes in Webpack 4 when using name in the query, for example: bundle-loader?name=x!my-module.

The crash is TypeError: Cannot read property 'context' of undefined and happens right here: https://github.com/webpack-contrib/bundle-loader/blob/master/index.js#L13

jods4 commented 6 years ago

Forget that, it was fixed in 0.5.6. Somehow yarn is playing tricks on me... I develop with a yarn link to a library that requires ^0.5.6 but it seems that I still got the 0.5.5 required by previous version (non-symlinked).

Not sure what happens here but if 0.5.6 is properly installed everything is fine.