修复 H5 来馆第三方导航构建边界
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-12 00:30:18 +08:00
parent e99d713dd0
commit e006333c0a
13 changed files with 560 additions and 523 deletions

View File

@@ -1,7 +1,22 @@
import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => ['view', 'text', 'scroll-view'].includes(tag)
}
}
})
],
define: {
__APP_BUILD_ID__: JSON.stringify('test-build'),
__APP_GIT_COMMIT__: JSON.stringify('test-commit'),
__APP_BUILD_PLATFORM__: JSON.stringify('h5')
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))