Skip to content

Commit a14c224

Browse files
author
knight.chen
committed
chore: add jsx support for vue-renderer
1 parent 661a817 commit a14c224

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

packages/vue-renderer/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@alilc/lowcode-types": "^1.1.10",
31+
"@vitejs/plugin-vue-jsx": "^3.0.2",
3132
"vite": "^4.4.9",
3233
"vite-plugin-lib-types": "^2.0.4",
3334
"vue": "^3.3.4"

packages/vue-renderer/vite.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig } from 'vitest/config';
22
import types from 'vite-plugin-lib-types';
3+
import vueJsx from '@vitejs/plugin-vue-jsx';
34
import pkg from './package.json';
45

56
export default defineConfig({
@@ -16,6 +17,7 @@ export default defineConfig({
1617
fileName: 'vue-renderer.d.ts',
1718
tsconfigPath: './tsconfig.build.json',
1819
}),
20+
vueJsx(),
1921
],
2022
build: {
2123
target: 'ES2018',

pnpm-lock.yaml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)