Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default custom<ApplicationPresetOptions>(() => {
customOptions.forcePresetEnv = true;
// Comparable behavior to tsconfig target of ES5
customOptions.supportedBrowsers = ['IE 9'];
} else if (isJsFile) {
} else if (isJsFile && customOptions.supportedBrowsers?.length) {
// Applications code ES version can be controlled using TypeScript's `target` option.
// However, this doesn't effect libraries and hence we use preset-env to downlevel ES fetaures
// based on the supported browsers in browserlist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ export async function execute(

return partials;
},
// During extraction we don't need specific browser support.
{ supportedBrowsers: undefined },
);

// All the localize usages are setup to first try the ESM entry point then fallback to the deep imports.
Expand Down