Accomodated for change to Loader API in Webpack 2
issue#213
This commit is contained in:
parent
99a8d7e4fd
commit
6818eedc2d
|
|
@ -9,7 +9,8 @@ module.exports = function (source) {
|
|||
this.cacheable();
|
||||
}
|
||||
var allLoadersButThisOne = this.loaders.filter(function (loader) {
|
||||
return loader.module !== module.exports;
|
||||
// Loader API changed from `loader.module` to `loader.normal` in Webpack 2.
|
||||
return (loader.module || loader.normal) !== module.exports;
|
||||
});
|
||||
// This loader shouldn't kick in if there is any other loader
|
||||
if (allLoadersButThisOne.length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue