Skip to content

Commit

Permalink
fix(legacy): modern polyfill autodetection was not injecting enough p…
Browse files Browse the repository at this point in the history
…olyfills (#16367)
  • Loading branch information
sapphi-red authored Apr 9, 2024
1 parent 58a2938 commit 4af9f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
// es2020 = chrome 80+, safari 13.1+, firefox 72+, edge 80+
// https://github.com/evanw/esbuild/issues/121#issuecomment-646956379
const modernTargetsBabel =
'edge>=80, firefox>=72, chrome>=80, safari>=13.1, chromeAndroid>=80, iOS>=13.1'
'edge>=79, firefox>=67, chrome>=64, safari>=12, chromeAndroid>=64, iOS>=12'

const genLegacy = options.renderLegacyChunks !== false
const genModern = options.renderModernChunks !== false
Expand Down

0 comments on commit 4af9f97

Please sign in to comment.