@@ -155,7 +155,7 @@ Builder.prototype.reset = function(baseLoader) {
155
155
loader . pluginLoader . config ( cfg ) ;
156
156
var lCfg = extend ( { } , cfg ) ;
157
157
// build environment is not production or the browser, but will follow nodeConfig, because the build is in Node
158
- lCfg . browserConfig = lCfg . productionConfig = undefined ;
158
+ lCfg . browserConfig = lCfg . productionConfig = lCfg . devConfig = undefined ;
159
159
loaderConfig . call ( this , lCfg ) ;
160
160
loader . configHash = generateConfigHash ( loader ) ;
161
161
} ;
@@ -338,7 +338,7 @@ function processTraceOpts(options, defaults) {
338
338
browser : undefined ,
339
339
node : undefined ,
340
340
production : undefined ,
341
- development : undefined ,
341
+ dev : undefined ,
342
342
traceAllConditionals : true ,
343
343
conditions : { } ,
344
344
traceConditionsOnly : false ,
@@ -364,11 +364,14 @@ function processTraceOpts(options, defaults) {
364
364
options . browser = ! options . node ;
365
365
}
366
366
367
- if ( typeof options . development == 'boolean' || typeof options . production == 'boolean' ) {
367
+ // development -> dev backwards compat
368
+ if ( 'development' in options )
369
+ options . dev = options . development ;
370
+ if ( typeof options . dev == 'boolean' || typeof options . production == 'boolean' ) {
368
371
if ( typeof options . production != 'boolean' )
369
- options . production = ! options . development ;
370
- if ( typeof options . development != 'boolean' )
371
- options . development = ! options . production ;
372
+ options . production = ! options . dev ;
373
+ if ( typeof options . dev != 'boolean' )
374
+ options . dev = ! options . production ;
372
375
}
373
376
}
374
377
@@ -389,6 +392,8 @@ function processTraceOpts(options, defaults) {
389
392
if ( typeof opts . production == 'boolean' ) {
390
393
opts . conditions [ '@system-env|production' ] = opts . production ;
391
394
opts . conditions [ '~@system-env|production' ] = opts . development ;
395
+ opts . conditions [ '@system-env|dev' ] = opts . development ;
396
+ opts . conditions [ '~@system-env|dev' ] = opts . production ;
392
397
}
393
398
394
399
return opts ;
0 commit comments