fix: vscode debug

(cherry picked from commit a5cb7a50ab)
This commit is contained in:
dhb52 2023-04-10 16:55:02 +08:00 committed by shizhong
parent 47f3736904
commit 2ba9ac52ab
2 changed files with 3 additions and 2 deletions

View File

@ -97,7 +97,8 @@ export function createVitePlugins() {
deleteOriginFile: false //压缩后是否删除源文件 deleteOriginFile: false //压缩后是否删除源文件
}), }),
ViteEjsPlugin(), ViteEjsPlugin(),
topLevelAwait({ // https://juejin.cn/post/7152191742513512485 topLevelAwait({
// https://juejin.cn/post/7152191742513512485
// The export name of top-level await promise for each chunk module // The export name of top-level await promise for each chunk module
promiseExportName: '__tla', promiseExportName: '__tla',
// The function to generate import names of top-level await promise in each chunk module // The function to generate import names of top-level await promise in each chunk module

View File

@ -127,7 +127,7 @@
"vite-plugin-purge-icons": "^0.9.2", "vite-plugin-purge-icons": "^0.9.2",
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-top-level-await": "^1.3.0", "vite-plugin-top-level-await": "^1.3.0",
"vite-plugin-vue-setup-extend": "^0.4.0", "vite-plugin-vue-setup-extend-plus": "^0.1.0",
"vite-plugin-windicss": "^1.8.10", "vite-plugin-windicss": "^1.8.10",
"vue-tsc": "^1.2.0", "vue-tsc": "^1.2.0",
"windicss": "^3.5.6" "windicss": "^3.5.6"