Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix setting default options
  • Loading branch information
yarastqt committed Dec 20, 2020
commit d5d1fc67494ed1e077c0751372cadf3134f5d1b6
2 changes: 1 addition & 1 deletion packages/feature-flags-webpack-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type PluginOptions = {

class FeatureFlagsWebpackPlugin {
constructor(public options: PluginOptions) {
Object.assign(this.options, { isFeatureEnabledFnName: 'isFeatureEnabled' })
this.options = Object.assign({ isFeatureEnabledFnName: 'isFeatureEnabled' }, this.options)
}

apply(compiler: Compiler) {
Expand Down