Skip to content

Commit 71af48d

Browse files
authored
fix: parsing circular json (#163)
1 parent 3523223 commit 71af48d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@ function pitch() {
2121
}),
2222
_compiler: { fsStartTime: this._compiler.fsStartTime },
2323
_compilation: {
24-
outputOptions: this._compilation.outputOptions,
25-
options: this._compilation.options,
24+
outputOptions: {
25+
hashSalt: this._compilation.outputOptions.hashSalt,
26+
hashFunction: this._compilation.outputOptions.hashFunction,
27+
hashDigest: this._compilation.outputOptions.hashDigest,
28+
hashDigestLength: this._compilation.outputOptions.hashDigestLength,
29+
},
30+
options: {
31+
devtool:
32+
this._compilation &&
33+
this._compilation.options &&
34+
this._compilation.options.devtool,
35+
},
2636
},
2737
resourcePath: this.resourcePath,
2838
resource: this.resourcePath + (this.resourceQuery || ''),

test/sass-loader-example/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = (env) => {
3131
return {
3232
mode: 'none',
3333
context: __dirname,
34+
devtool: false,
3435
entry: ['./index.js'],
3536
output: {
3637
path: path.resolve('dist'),

0 commit comments

Comments
 (0)