This commit is contained in:
@@ -2,26 +2,5 @@ import { defineConfig } from 'vite'
|
||||
import uni from '@dcloudio/vite-plugin-uni'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
uni({
|
||||
vueOptions: {
|
||||
template: {
|
||||
compilerOptions: {
|
||||
// 保留微信 JSSDK 相关的全局变量
|
||||
isCustomElement: (tag) => tag === 'wx'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
external: ['wx'],
|
||||
output: {
|
||||
globals: {
|
||||
wx: 'wx'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
plugins: [uni()],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user