We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2342357 commit 297d1a2Copy full SHA for 297d1a2
vite.config.ts
@@ -5,6 +5,7 @@ import UniHelperManifest from '@uni-helper/vite-plugin-uni-manifest'
5
import UniHelperPages from '@uni-helper/vite-plugin-uni-pages'
6
import AutoImport from 'unplugin-auto-import/vite'
7
import { defineConfig } from 'vite'
8
+import UniPolyfill from 'vite-plugin-uni-polyfill'
9
10
// https://vitejs.dev/config/
11
export default async () => {
@@ -26,6 +27,7 @@ export default async () => {
26
27
directoryAsNamespace: true,
28
}),
29
Uni(),
30
+ UniPolyfill(),
31
// https://github.com/antfu/unplugin-auto-import
32
AutoImport({
33
imports: ['vue', '@vueuse/core', 'uni-app'],
0 commit comments