Skip to content

Commit 0960987

Browse files
committed
feat(vue-jsx): allow esbuild to perform ts transformation
1 parent e610f98 commit 0960987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { defineConfig } from 'vite'
22
import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
33
import vuePlugin from '@vitejs/plugin-vue'
4-
import babelPluginSyntaxTypescript from '@babel/plugin-syntax-decorators'
4+
import babelPluginSyntaxDecorators from '@babel/plugin-syntax-decorators'
55

66
export default defineConfig({
77
plugins: [
88
vueJsxPlugin({
99
tsTransform: 'built-in',
1010
babelPlugins: [
1111
[
12-
babelPluginSyntaxTypescript,
12+
babelPluginSyntaxDecorators,
1313
// to test decorators we use only method decorators
1414
// they have the same syntax in 'legacy' and in '2023-11'
1515
{ version: '2023-11' },

0 commit comments

Comments
 (0)