File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ export function makeBaseBundleConfig(options) {
88
88
* @returns An array of versions of that config
89
89
*/
90
90
export function makeBundleConfigVariants ( baseConfig ) {
91
- const configVariants = [ ] ;
92
-
93
91
const { plugins : baseConfigPlugins } = baseConfig ;
94
92
const includeDebuggingPlugin = makeIsDebugBuildPlugin ( true ) ;
95
93
const stripDebuggingPlugin = makeIsDebugBuildPlugin ( false ) ;
@@ -131,14 +129,11 @@ export function makeBundleConfigVariants(baseConfig) {
131
129
} ,
132
130
] ;
133
131
134
- variantSpecificConfigs . forEach ( variant => {
135
- const mergedConfig = deepMerge ( baseConfig , variant , {
132
+ return variantSpecificConfigs . map ( variant =>
133
+ deepMerge ( baseConfig , variant , {
136
134
// this makes it so that instead of concatenating the `plugin` properties of the two objects, the first value is
137
135
// just overwritten by the second value
138
136
arrayMerge : ( first , second ) => second ,
139
- } ) ;
140
- configVariants . push ( mergedConfig ) ;
141
- } ) ;
142
-
143
- return configVariants ;
137
+ } ) ,
138
+ ) ;
144
139
}
You can’t perform that action at this time.
0 commit comments