Skip to content

Commit 297d1a2

Browse files
committed
build: add vite-plugin-uni-polyfill
1 parent 2342357 commit 297d1a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import UniHelperManifest from '@uni-helper/vite-plugin-uni-manifest'
55
import UniHelperPages from '@uni-helper/vite-plugin-uni-pages'
66
import AutoImport from 'unplugin-auto-import/vite'
77
import { defineConfig } from 'vite'
8+
import UniPolyfill from 'vite-plugin-uni-polyfill'
89

910
// https://vitejs.dev/config/
1011
export default async () => {
@@ -26,6 +27,7 @@ export default async () => {
2627
directoryAsNamespace: true,
2728
}),
2829
Uni(),
30+
UniPolyfill(),
2931
// https://github.com/antfu/unplugin-auto-import
3032
AutoImport({
3133
imports: ['vue', '@vueuse/core', 'uni-app'],

0 commit comments

Comments
 (0)