diff --git a/.vscode/crud.code-snippets b/.vscode/crud.code-snippets index e085492..360a9f8 100644 --- a/.vscode/crud.code-snippets +++ b/.vscode/crud.code-snippets @@ -18,7 +18,7 @@ "", " ", " ", - " ", + " ", " ", "", " ", @@ -28,13 +28,13 @@ " ", "", " ", - " ", + " ", " ", "", "", " - - diff --git a/tsconfig.json b/tsconfig.json index b37f618..1f326aa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,7 @@ "lib": ["esnext", "dom"], "types": ["vite/client", "vite-svg-loader"], "paths": { + "/$/*": ["./src/cool/modules/*"], "/@/*": ["./src/*"], "/#/*": ["./types/*"] } diff --git a/vite.config.ts b/vite.config.ts index cde2c01..72c9737 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,7 +17,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { resolve: { alias: { "/@": resolve("src"), - "/#": resolve("types") + "/#": resolve("types"), + "/$": resolve("src/cool/modules") } }, css: { @@ -48,7 +49,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { }, build: { sourcemap: false, - polyfillDynamicImport: false + polyfillDynamicImport: false // 必须为false }, optimizeDeps: { exclude: ["vue-demi"] diff --git a/yarn.lock b/yarn.lock index db1981d..6812a79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -491,6 +491,13 @@ "@vue/compiler-dom" "3.0.9" "@vue/shared" "3.0.9" +"@vue/composition-api@^1.0.0-rc.6": + version "1.0.0-rc.6" + resolved "https://registry.npmjs.org/@vue/composition-api/-/composition-api-1.0.0-rc.6.tgz#21ce2c169dd4ff17a5bf60c6e98863dff1a36540" + integrity sha512-M3jsyDBozQFqAPYdM4GCoVZEljIHsTVdcq5fZx9axpKz9ChIlQngxNf1ziLVaJvWX7T+MO1rVTEx6Xjgg/gUcQ== + dependencies: + tslib "^2.1.0" + "@vue/reactivity@3.0.11": version "3.0.11" resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.0.11.tgz#07b588349fd05626b17f3500cbef7d4bdb4dbd0b" @@ -3470,7 +3477,7 @@ tslib@^1.8.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3: +tslib@^2.0.3, tslib@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==