Skip to content

Commit 4af9f97

Browse files
authored
fix(legacy): modern polyfill autodetection was not injecting enough polyfills (#16367)
1 parent 58a2938 commit 4af9f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-legacy/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
139139
// es2020 = chrome 80+, safari 13.1+, firefox 72+, edge 80+
140140
// https://github.com/evanw/esbuild/issues/121#issuecomment-646956379
141141
const modernTargetsBabel =
142-
'edge>=80, firefox>=72, chrome>=80, safari>=13.1, chromeAndroid>=80, iOS>=13.1'
142+
'edge>=79, firefox>=67, chrome>=64, safari>=12, chromeAndroid>=64, iOS>=12'
143143

144144
const genLegacy = options.renderLegacyChunks !== false
145145
const genModern = options.renderModernChunks !== false

0 commit comments

Comments
 (0)