mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-11 07:59:55 +08:00
chore: improve tsconfig
This commit is contained in:
@@ -41,15 +41,15 @@ function main() {
|
||||
},
|
||||
}
|
||||
|
||||
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
||||
monaco.typescript.typescriptDefaults.setDiagnosticsOptions({
|
||||
noSemanticValidation: true,
|
||||
})
|
||||
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
||||
monaco.typescript.typescriptDefaults.setCompilerOptions({
|
||||
allowJs: true,
|
||||
allowNonTsExtensions: true,
|
||||
jsx: monaco.languages.typescript.JsxEmit.Preserve,
|
||||
target: monaco.languages.typescript.ScriptTarget.Latest,
|
||||
module: monaco.languages.typescript.ModuleKind.ESNext,
|
||||
jsx: monaco.typescript.JsxEmit.Preserve,
|
||||
target: monaco.typescript.ScriptTarget.Latest,
|
||||
module: monaco.typescript.ModuleKind.ESNext,
|
||||
isolatedModules: true,
|
||||
})
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createApp, defineComponent, reactive } from 'vue'
|
||||
import type { VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
|
||||
|
||||
export { VueJSXPluginOptions }
|
||||
export type { VueJSXPluginOptions }
|
||||
|
||||
export const compilerOptions: VueJSXPluginOptions = reactive({
|
||||
mergeProps: true,
|
||||
|
||||
11
packages/jsx-explorer/vite.config.js
Normal file
11
packages/jsx-explorer/vite.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import VueJSX from '@vitejs/plugin-vue-jsx'
|
||||
import { defaultClientConditions, defineConfig } from 'vite'
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
conditions: ['dev', ...defaultClientConditions],
|
||||
},
|
||||
define: {
|
||||
'process.env.BABEL_TYPES_8_BREAKING': 'false',
|
||||
},
|
||||
plugins: [VueJSX()],
|
||||
})
|
||||
Reference in New Issue
Block a user