Merge pull request #214 from foglerek/master
Accomodated for change to Loader API in Webpack 2
This commit is contained in:
commit
2ed44aad42
|
|
@ -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