File tree 2 files changed +3
-1
lines changed
packages/angular_devkit/build_angular/src
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export default custom<ApplicationPresetOptions>(() => {
125
125
customOptions . forcePresetEnv = true ;
126
126
// Comparable behavior to tsconfig target of ES5
127
127
customOptions . supportedBrowsers = [ 'IE 9' ] ;
128
- } else if ( isJsFile ) {
128
+ } else if ( isJsFile && customOptions . supportedBrowsers ?. length ) {
129
129
// Applications code ES version can be controlled using TypeScript's `target` option.
130
130
// However, this doesn't effect libraries and hence we use preset-env to downlevel ES fetaures
131
131
// based on the supported browsers in browserlist.
Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ export async function execute(
233
233
234
234
return partials ;
235
235
} ,
236
+ // During extraction we don't need specific browser support.
237
+ { supportedBrowsers : undefined } ,
236
238
) ;
237
239
238
240
// All the localize usages are setup to first try the ESM entry point then fallback to the deep imports.
You can’t perform that action at this time.
0 commit comments