mirror of
https://github.com/vuejs/core.git
synced 2024-11-22 04:51:10 +00:00
d0b7ef3b61
- No longer implicitly register global JSX types by default - This avoid conflict when using Vue in the same project with React - Global registration must now be done by explicitly importing / referencing `vue/jsx`, or listing it in `compilerOptions.types`. - Add `vue/jsx-runtime` to support `jsxImportSource` usage - Can enable globally by setting `compilerOptions.jsxImportSource` to `'vue'` - Can also opt-in per-file with `/** @jsxImportSource vue */`
39 lines
951 B
JSON
39 lines
951 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"outDir": "temp",
|
|
"sourceMap": false,
|
|
"target": "es2016",
|
|
"newLine": "LF",
|
|
"useDefineForClassFields": false,
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"allowJs": false,
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"experimentalDecorators": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"removeComments": false,
|
|
"jsx": "preserve",
|
|
"lib": ["esnext", "dom"],
|
|
"types": ["vitest/globals", "puppeteer", "node"],
|
|
"rootDir": ".",
|
|
"paths": {
|
|
"@vue/compat": ["packages/vue-compat/src"],
|
|
"@vue/*": ["packages/*/src"],
|
|
"vue": ["packages/vue/src"]
|
|
}
|
|
},
|
|
"include": [
|
|
"packages/global.d.ts",
|
|
"packages/*/src",
|
|
"packages/runtime-dom/types/jsx.d.ts",
|
|
"packages/*/__tests__",
|
|
"packages/dts-test",
|
|
"packages/vue/jsx-runtime"
|
|
]
|
|
}
|