diff --git a/src/index.js b/src/index.js index 4f16cefa..13964073 100644 --- a/src/index.js +++ b/src/index.js @@ -21,8 +21,18 @@ function pitch() { }), _compiler: { fsStartTime: this._compiler.fsStartTime }, _compilation: { - outputOptions: this._compilation.outputOptions, - options: this._compilation.options, + outputOptions: { + hashSalt: this._compilation.outputOptions.hashSalt, + hashFunction: this._compilation.outputOptions.hashFunction, + hashDigest: this._compilation.outputOptions.hashDigest, + hashDigestLength: this._compilation.outputOptions.hashDigestLength, + }, + options: { + devtool: + this._compilation && + this._compilation.options && + this._compilation.options.devtool, + }, }, resourcePath: this.resourcePath, resource: this.resourcePath + (this.resourceQuery || ''), diff --git a/test/sass-loader-example/webpack.config.js b/test/sass-loader-example/webpack.config.js index 3d5a4dc8..0346dc67 100644 --- a/test/sass-loader-example/webpack.config.js +++ b/test/sass-loader-example/webpack.config.js @@ -31,6 +31,7 @@ module.exports = (env) => { return { mode: 'none', context: __dirname, + devtool: false, entry: ['./index.js'], output: { path: path.resolve('dist'),