diff --git a/example/vue/src/comp.tsx b/example/vue/src/comp.tsx new file mode 100644 index 00000000..33ef763e --- /dev/null +++ b/example/vue/src/comp.tsx @@ -0,0 +1,9 @@ +// import { defineComponent, h } from 'vue'; +// export const Com = defineComponent({ +// name: 'Com', +// render() { +// return
Com Test
; +// }, +// }); + +export const Com = () =>
Com
; diff --git a/example/vue/src/index.tsx b/example/vue/src/index.tsx index 80093b27..5ce41960 100644 --- a/example/vue/src/index.tsx +++ b/example/vue/src/index.tsx @@ -1,5 +1,7 @@ import { defineComponent, h } from 'vue'; +export * from './comp'; + export default defineComponent({ name: 'Login', render() { diff --git a/example/vue/tsconfig.json b/example/vue/tsconfig.json index dfdcd343..3ffa34fb 100644 --- a/example/vue/tsconfig.json +++ b/example/vue/tsconfig.json @@ -2,19 +2,24 @@ "compilerOptions": { "strict": true, "strictNullChecks": true, - "jsx": "react", + "jsx": "preserve", "baseUrl": ".", "outDir": "cjs", "noEmit": false, "jsxFactory": "h", "jsxFragmentFactory": "Fragment", "module": "ES6", - "moduleResolution": "Node", - "declaration": true, - "forceConsistentCasingInFileNames": true, - "composite": true, + "moduleResolution": "node", "target": "ES6", + "declaration": true, + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, "esModuleInterop": true, - "lib": ["ESNext", "DOM"] + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true } }