Skip to content

Commit d5d1fc6

Browse files
committed
fix: fix setting default options
1 parent a353f06 commit d5d1fc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/feature-flags-webpack-plugin/src

packages/feature-flags-webpack-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type PluginOptions = {
1616

1717
class FeatureFlagsWebpackPlugin {
1818
constructor(public options: PluginOptions) {
19-
Object.assign(this.options, { isFeatureEnabledFnName: 'isFeatureEnabled' })
19+
this.options = Object.assign({ isFeatureEnabledFnName: 'isFeatureEnabled' }, this.options)
2020
}
2121

2222
apply(compiler: Compiler) {

0 commit comments

Comments
 (0)