We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6390800 + 9fffd48 commit 726c609Copy full SHA for 726c609
1 file changed
packages/main/src/vite/vite.ts
@@ -2,6 +2,7 @@ import * as path from 'node:path'
2
import * as vite from 'vite'
3
import {type PluginItem, transformAsync} from '@babel/core'
4
import * as debug from '@solid-devtools/debugger/types'
5
+import babelTsSyntaxPlugin from '@babel/plugin-syntax-typescript';
6
import * as babel from '../babel.ts'
7
8
export const enum DevtoolsModule {
@@ -116,7 +117,7 @@ export const devtoolsPlugin = (_options: DevtoolsPluginOptions = {}): vite.Plugi
116
117
}
118
119
// babel doesn't work with typescript by default
- plugins.unshift(['@babel/plugin-syntax-typescript', {isTSX: is_jsx}])
120
+ plugins.unshift([babelTsSyntaxPlugin, {isTSX: is_jsx}])
121
122
const result = await transformAsync(source, {
123
babelrc: false,
0 commit comments