-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
With the environment
$ npm ls --depth 0 webpack reshape-loader
/home/luism/project/journal
├── reshape-loader@1.1.0
└── webpack@4.2.0webpack -d outputs the error
Module build failed: TypeError: this._compiler.applyPlugins is not a function
at Object.module.exports (/home/luism/project/journal/node_modules/reshape-loader/lib/index.js:26:18)
Looking at
- the line
Lines 25 to 26 in 5b49bcb
// custom plugin hook for options modification this._compiler.applyPlugins('before-loader-process', this, options) - documentation for custom plugin hooks
- and the webpack source code
https://github.com/webpack/webpack/blob/d668a23fdc69c61ab80ec8db89a5b49778559534/lib/Compilation.js#L1833-L1838
I gather this may have something to do with method applyPlugins deprecation.
Any plans to support webpack 4?
Steps to Reproduce
git clone https://github.com/reshape/loader.git
cd loader/
npm install -D webpack@latest
npm install
npm testThe first test fails with the same error.
basic
Rejected promise returned by test. Reason:
{
err: [
ModuleBuildError {
dependencies: Array [ … ],
error: TypeError { … },
message: `Module build failed: TypeError: this._compiler.applyPlugins is not a function␊
at Object.module.exports (/home/luism/project/loader/lib/index.js:8:39)`,
module: NormalModule { … },
origin: NormalModule { … },
},
],
outputPath: '/home/luism/project/loader/test/fixtures/basic/bundle.js',
}
Metadata
Metadata
Assignees
Labels
No labels