@@ -208,16 +208,16 @@ export function makeConfigVariants(baseConfig) {
208
208
209
209
const { plugins } = baseConfig ;
210
210
const includeDebuggingPlugin = makeIsDebugBuildPlugin ( true ) ;
211
- const noDebuggingPlugin = makeIsDebugBuildPlugin ( false ) ;
211
+ const stripDebuggingPlugin = makeIsDebugBuildPlugin ( false ) ;
212
212
213
213
// The license plugin has to be last, so it ends up after terser. Otherwise, terser will remove the license banner.
214
214
assert (
215
215
getLastElement ( plugins ) . name === 'rollup-plugin-license' ,
216
216
`Last plugin in given options should be \`rollup-plugin-license\`. Found ${ getLastElement ( plugins ) . name } ` ,
217
217
) ;
218
218
219
- // The additional options to use for each variant we're going to create #namingishard
220
- const variantSpecificOptionsVariants = [
219
+ // The additional options to use for each variant we're going to create
220
+ const variantSpecificConfigs = [
221
221
{
222
222
output : {
223
223
file : `${ baseConfig . output . file } .js` ,
@@ -230,13 +230,13 @@ export function makeConfigVariants(baseConfig) {
230
230
// {
231
231
// output: { file: `${baseConfig.output.file}.no-debug.js`,
232
232
// },
233
- // plugins: insertAt(plugins, -2, noDebuggingPlugin ),
233
+ // plugins: insertAt(plugins, -2, stripDebuggingPlugin ),
234
234
// },
235
235
{
236
236
output : {
237
237
file : `${ baseConfig . output . file } .min.js` ,
238
238
} ,
239
- plugins : insertAt ( plugins , - 2 , noDebuggingPlugin , terserPlugin ) ,
239
+ plugins : insertAt ( plugins , - 2 , stripDebuggingPlugin , terserPlugin ) ,
240
240
} ,
241
241
{
242
242
output : {
@@ -246,7 +246,7 @@ export function makeConfigVariants(baseConfig) {
246
246
} ,
247
247
] ;
248
248
249
- variantSpecificOptionsVariants . forEach ( variant => {
249
+ variantSpecificConfigs . forEach ( variant => {
250
250
const mergedConfig = deepMerge ( baseConfig , variant , {
251
251
// this makes it so that instead of concatenating the `plugin` properties of the two objects, the first value is
252
252
// just overwritten by the second value
0 commit comments