Skip to content

Commit 3f11a34

Browse files
use module resolution as bundler
1 parent 5591281 commit 3f11a34

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

demo/vue-app-new/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/vue-app-new/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type-check": "vue-tsc --noEmit -p tsconfig.json",
77
"dev": "vite",
88
"serve": "vite preview",
9-
"build": "vite build",
9+
"build": "npm run type-check && vite build",
1010
"lint": "eslint --cache --fix"
1111
},
1212
"dependencies": {

demo/vue-app-new/tsconfig.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"module": "esnext",
4+
"module": "ESNext",
55
"strict": true,
66
"jsx": "preserve",
77
"importHelpers": true,
8-
"moduleResolution": "node",
8+
"moduleResolution": "bundler",
99
"experimentalDecorators": true,
1010
"skipLibCheck": true,
1111
"esModuleInterop": true,
@@ -14,19 +14,10 @@
1414
"sourceMap": true,
1515
"baseUrl": ".",
1616
"paths": {
17-
"@/*": [
18-
"src/*"
19-
]
17+
"@/*": ["src/*"]
2018
},
21-
"lib": [
22-
"esnext",
23-
"dom",
24-
"dom.iterable",
25-
"scripthost"
26-
]
19+
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
2720
},
2821
"include": ["src"],
29-
"exclude": [
30-
"node_modules"
31-
]
32-
}
22+
"exclude": ["node_modules"]
23+
}

0 commit comments

Comments
 (0)