File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
playground/vue-jsx-ts-built-in Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import vuePlugin from '@vitejs/plugin-vue'
55export default defineConfig ( {
66 plugins : [
77 vueJsxPlugin ( {
8- include : [ / \. t e s x $ / , / \. [ j t ] s x $ / ] ,
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
You can’t perform that action at this time.
0 commit comments