Skip to content

Commit 3067aa3

Browse files
committed
feat(vue-jsx): allow esbuild to perform ts transformation
1 parent 71c5044 commit 3067aa3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

playground/vue-jsx-ts-built-in/vite.config.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import vuePlugin from '@vitejs/plugin-vue'
55
export default defineConfig({
66
plugins: [
77
vueJsxPlugin({
8-
include: [/\.tesx$/, /\.[jt]sx$/],
98
tsTransform: 'built-in',
109
babelPlugins: [
1110
// to tests decorators we use only method decorators
@@ -14,27 +13,6 @@ export default defineConfig({
1413
],
1514
}),
1615
vuePlugin(),
17-
{
18-
name: 'jsx-query-plugin',
19-
transform(code, id) {
20-
if (id.includes('?query=true')) {
21-
return `
22-
import { createVNode as _createVNode } from "vue";
23-
import { defineComponent, ref } from 'vue';
24-
export default defineComponent(() => {
25-
const count = ref(6);
26-
27-
const inc = () => count.value++;
28-
29-
return () => _createVNode("button", {
30-
"class": "jsx-with-query",
31-
"onClick": inc
32-
}, [count.value]);
33-
});
34-
`
35-
}
36-
},
37-
},
3816
],
3917
build: {
4018
// to make tests faster

0 commit comments

Comments
 (0)