File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/angular_devkit/build_angular/src Expand file tree Collapse file tree 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>(() => {
125125 customOptions . forcePresetEnv = true ;
126126 // Comparable behavior to tsconfig target of ES5
127127 customOptions . supportedBrowsers = [ 'IE 9' ] ;
128- } else if ( isJsFile ) {
128+ } else if ( isJsFile && customOptions . supportedBrowsers ?. length ) {
129129 // Applications code ES version can be controlled using TypeScript's `target` option.
130130 // However, this doesn't effect libraries and hence we use preset-env to downlevel ES fetaures
131131 // 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(
233233
234234 return partials ;
235235 } ,
236+ // During extraction we don't need specific browser support.
237+ { supportedBrowsers : undefined } ,
236238 ) ;
237239
238240 // 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