Explorar o código

fix: fix pnpm run build bug

simon hai 9 meses
pai
achega
2b2482bfb8
Modificáronse 2 ficheiros con 7 adicións e 3 borrados
  1. 2 2
      src/router/index.ts
  2. 5 1
      tsconfig.app.json

+ 2 - 2
src/router/index.ts

@@ -18,6 +18,6 @@ const routes: RouteRecordRaw[] = [
 ];
 
 export default createRouter({
-  history: createWebHistory(),
-  routes
+  history: createWebHistory(), // createWebHashHistory() for hash mode
+  routes // short for `routes: routes`
 });

+ 5 - 1
tsconfig.app.json

@@ -8,7 +8,11 @@
     "noUnusedLocals": true,
     "noUnusedParameters": true,
     "noFallthroughCasesInSwitch": true,
-    "noUncheckedSideEffectImports": true
+    "noUncheckedSideEffectImports": true,
+    "baseUrl": ".",
+    "paths": {
+      "@/*": ["src/*"]
+    }
   },
   "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
 }