This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user