@@ -108,12 +108,6 @@ export function generateContext(context?: BuildContext): BuildContext {
108
108
const cleanBeforeCopy = getConfigValue ( context , '--cleanBeforeCopy' , null , Constants . ENV_CLEAN_BEFORE_COPY , Constants . ENV_CLEAN_BEFORE_COPY . toLowerCase ( ) , null ) ;
109
109
setProcessEnvVar ( Constants . ENV_CLEAN_BEFORE_COPY , cleanBeforeCopy ) ;
110
110
111
- const closureEnabled = getConfigValue ( context , '--useExperimentalClosure' , null , Constants . ENV_USE_EXPERIMENTAL_CLOSURE , Constants . ENV_USE_EXPERIMENTAL_CLOSURE . toLowerCase ( ) , null ) ;
112
- setProcessEnvVar ( Constants . ENV_USE_EXPERIMENTAL_CLOSURE , closureEnabled ) ;
113
-
114
- const babiliEnabled = getConfigValue ( context , '--useExperimentalBabili' , null , Constants . ENV_USE_EXPERIMENTAL_BABILI , Constants . ENV_USE_EXPERIMENTAL_BABILI . toLowerCase ( ) , null ) ;
115
- setProcessEnvVar ( Constants . ENV_USE_EXPERIMENTAL_BABILI , babiliEnabled ) ;
116
-
117
111
setProcessEnvVar ( Constants . ENV_CLOSURE_JAR , join ( getProcessEnvVar ( Constants . ENV_VAR_APP_SCRIPTS_DIR ) , 'bin' , 'closure-compiler.jar' ) ) ;
118
112
119
113
const outputJsFileName = getConfigValue ( context , '--outputJsFileName' , null , Constants . ENV_OUTPUT_JS_FILE_NAME , Constants . ENV_OUTPUT_JS_FILE_NAME . toLowerCase ( ) , 'main.js' ) ;
@@ -140,17 +134,26 @@ export function generateContext(context?: BuildContext): BuildContext {
140
134
const bailOnLintError = getConfigValue ( context , '--bailOnLintError' , null , Constants . ENV_BAIL_ON_LINT_ERROR , Constants . ENV_BAIL_ON_LINT_ERROR . toLowerCase ( ) , null ) ;
141
135
setProcessEnvVar ( Constants . ENV_BAIL_ON_LINT_ERROR , bailOnLintError ) ;
142
136
143
- // default stand-alone builds to default to es5
144
- // if closure is being used, don't worry about this as it already automatically converts to ES5
145
- const buildToEs5 = getConfigValue ( context , '--buildToEs5' , null , Constants . ENV_BUILD_TO_ES5 , Constants . ENV_BUILD_TO_ES5 . toLowerCase ( ) , closureEnabled ? null : 'true' ) ;
146
- setProcessEnvVar ( Constants . ENV_BUILD_TO_ES5 , buildToEs5 ) ;
147
-
148
137
const experimentalManualTreeshaking = getConfigValue ( context , '--experimentalManualTreeshaking' , null , Constants . ENV_EXPERIMENTAL_MANUAL_TREESHAKING , Constants . ENV_EXPERIMENTAL_MANUAL_TREESHAKING . toLowerCase ( ) , null ) ;
149
138
setProcessEnvVar ( Constants . ENV_EXPERIMENTAL_MANUAL_TREESHAKING , experimentalManualTreeshaking ) ;
150
139
151
140
const experimentalPurgeDecorators = getConfigValue ( context , '--experimentalPurgeDecorators' , null , Constants . ENV_EXPERIMENTAL_PURGE_DECORATORS , Constants . ENV_EXPERIMENTAL_PURGE_DECORATORS . toLowerCase ( ) , null ) ;
152
141
setProcessEnvVar ( Constants . ENV_EXPERIMENTAL_PURGE_DECORATORS , experimentalPurgeDecorators ) ;
153
142
143
+ const closureEnabled = getConfigValue ( context , '--useExperimentalClosure' , null , Constants . ENV_USE_EXPERIMENTAL_CLOSURE , Constants . ENV_USE_EXPERIMENTAL_CLOSURE . toLowerCase ( ) , null ) ;
144
+ setProcessEnvVar ( Constants . ENV_USE_EXPERIMENTAL_CLOSURE , closureEnabled ) ;
145
+
146
+ const babiliEnabled = getConfigValue ( context , '--useExperimentalBabili' , null , Constants . ENV_USE_EXPERIMENTAL_BABILI , Constants . ENV_USE_EXPERIMENTAL_BABILI . toLowerCase ( ) , null ) ;
147
+ setProcessEnvVar ( Constants . ENV_USE_EXPERIMENTAL_BABILI , babiliEnabled ) ;
148
+
149
+ const parseDeepLinks = getConfigValue ( context , '--experimentalParseDeepLinks' , null , Constants . ENV_EXPERIMENTAL_PARSE_DEEPLINKS , Constants . ENV_EXPERIMENTAL_PARSE_DEEPLINKS . toLowerCase ( ) , null ) ;
150
+ setProcessEnvVar ( Constants . ENV_EXPERIMENTAL_PARSE_DEEPLINKS , parseDeepLinks ) ;
151
+
152
+ // default stand-alone builds to default to es5
153
+ // if closure is being used, don't worry about this as it already automatically converts to ES5
154
+ const buildToEs5 = getConfigValue ( context , '--buildToEs5' , null , Constants . ENV_BUILD_TO_ES5 , Constants . ENV_BUILD_TO_ES5 . toLowerCase ( ) , closureEnabled ? null : 'true' ) ;
155
+ setProcessEnvVar ( Constants . ENV_BUILD_TO_ES5 , buildToEs5 ) ;
156
+
154
157
if ( ! isValidBundler ( context . bundler ) ) {
155
158
context . bundler = bundlerStrategy ( context ) ;
156
159
}
0 commit comments