-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
32 lines (27 loc) · 1.1 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Vue.js 3",
"extends": "../base/tsconfig.json",
"compilerOptions": {
// - Vue 3 supports ES2016+
// - For Vite, the actual compilation target is determined by the
// `build.target` option in the Vite config.
// So don't change the `target` field here. It has to be
// at least `ES2020` for dynamic `import()`s and `import.meta` to work correctly.
"target": "ES2022",
// Required in Vue projects.
"jsx": "preserve",
"jsxImportSource": "vue",
// Add DOM definitions.
"lib": ["ES2022", "DOM", "DOM.Iterable"],
// It's recommended to author and ship in ES modules.
// This recommendation includes environments like Vitest, Vite Config File, Vite SSR, etc.
"module": "ES2022",
// Enable some resolution features that are only available in bundlers.
"moduleResolution": "bundler",
"resolveJsonModule": true,
// Any imports or exports without a type modifier are left around. This is important for `<script setup>`.
// Anything that uses the type modifier is dropped entirely.
"verbatimModuleSyntax": true
}
}