Skip to content

Commit

Permalink
chore: add jsx support for vue-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
knight.chen committed Aug 30, 2023
1 parent 661a817 commit a14c224
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vue-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"@alilc/lowcode-types": "^1.1.10",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"vite": "^4.4.9",
"vite-plugin-lib-types": "^2.0.4",
"vue": "^3.3.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/vue-renderer/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitest/config';
import types from 'vite-plugin-lib-types';
import vueJsx from '@vitejs/plugin-vue-jsx';
import pkg from './package.json';

export default defineConfig({
Expand All @@ -16,6 +17,7 @@ export default defineConfig({
fileName: 'vue-renderer.d.ts',
tsconfigPath: './tsconfig.build.json',
}),
vueJsx(),
],
build: {
target: 'ES2018',
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a14c224

Please sign in to comment.