From b7045c5c1bfa584763e4b858cf3cc47852abdb30 Mon Sep 17 00:00:00 2001 From: Zack Jackson Date: Sat, 3 Aug 2019 16:11:04 -0700 Subject: [PATCH] fix(options): use filename mutated after instantiation (#183) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 27c94e42..775f6ff2 100644 --- a/src/index.js +++ b/src/index.js @@ -124,7 +124,7 @@ class ExtractCssChunksPlugin { this.options = Object.assign( { filename: DEFAULT_FILENAME, - moduleFilename: () => options.filename || DEFAULT_FILENAME, + moduleFilename: () => this.options.filename || DEFAULT_FILENAME, }, options );