webpack-contrib / bundle-loader

Bundle Loader
MIT License
658 stars 59 forks source link

fix(index): add `rootContext` (`this.rootContext`) #70

Closed statianzo closed 6 years ago

statianzo commented 6 years ago

Webpack 4 removed this.options from loaders. The replacement for this.options.context is this.rootContext.

this.options and this.rootContext webpack 3 already deprecated this.options in the loader context. webpack 4 removes it now.

A lot of people are missing the this.options.context value now. It has been added as this.rootContext.

https://medium.com/webpack/webpack-4-migration-guide-for-plugins-loaders-20a79b927202

Fixes #69

jsf-clabot commented 6 years ago

CLA assistant check
All committers have signed the CLA.

michael-ciniawsky commented 6 years ago

Released in v0.5.6 🎉 Thx