@@ -208,16 +208,16 @@ export function makeConfigVariants(baseConfig) {
208208
209209 const { plugins } = baseConfig ;
210210 const includeDebuggingPlugin = makeIsDebugBuildPlugin ( true ) ;
211- const noDebuggingPlugin = makeIsDebugBuildPlugin ( false ) ;
211+ const stripDebuggingPlugin = makeIsDebugBuildPlugin ( false ) ;
212212
213213 // The license plugin has to be last, so it ends up after terser. Otherwise, terser will remove the license banner.
214214 assert (
215215 getLastElement ( plugins ) . name === 'rollup-plugin-license' ,
216216 `Last plugin in given options should be \`rollup-plugin-license\`. Found ${ getLastElement ( plugins ) . name } ` ,
217217 ) ;
218218
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 = [
221221 {
222222 output : {
223223 file : `${ baseConfig . output . file } .js` ,
@@ -230,13 +230,13 @@ export function makeConfigVariants(baseConfig) {
230230 // {
231231 // output: { file: `${baseConfig.output.file}.no-debug.js`,
232232 // },
233- // plugins: insertAt(plugins, -2, noDebuggingPlugin ),
233+ // plugins: insertAt(plugins, -2, stripDebuggingPlugin ),
234234 // },
235235 {
236236 output : {
237237 file : `${ baseConfig . output . file } .min.js` ,
238238 } ,
239- plugins : insertAt ( plugins , - 2 , noDebuggingPlugin , terserPlugin ) ,
239+ plugins : insertAt ( plugins , - 2 , stripDebuggingPlugin , terserPlugin ) ,
240240 } ,
241241 {
242242 output : {
@@ -246,7 +246,7 @@ export function makeConfigVariants(baseConfig) {
246246 } ,
247247 ] ;
248248
249- variantSpecificOptionsVariants . forEach ( variant => {
249+ variantSpecificConfigs . forEach ( variant => {
250250 const mergedConfig = deepMerge ( baseConfig , variant , {
251251 // this makes it so that instead of concatenating the `plugin` properties of the two objects, the first value is
252252 // just overwritten by the second value
0 commit comments