Skip to content

Commit 9a0f38e

Browse files
author
kaiyu.kong
committed
feat: modernPolyfills
1 parent 9f15118 commit 9a0f38e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-template/template/commonDir/vite.config.ts.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default defineConfig(({ mode, command }: ConfigEnv) => {
9494
'not dead'
9595
],
9696
<%_ } _%>
97+
// modernPolyfills: true // 现代浏览器 polyfill
9798
}),
9899
// 自定义插件,将脚本移动到body底部
99100
moveScriptsToBody(),

0 commit comments

Comments
 (0)