File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import * as path from 'node:path'
22import * as vite from 'vite'
33import { type PluginItem , transformAsync } from '@babel/core'
44import * as debug from '@solid-devtools/debugger/types'
5- import babelTsSyntaxPlugin from '@babel/plugin-syntax-typescript' ;
5+ // @ts -expect-error
6+ import plugin_ts_syntax from '@babel/plugin-syntax-typescript'
67import * as babel from '../babel.ts'
78
89export const enum DevtoolsModule {
@@ -117,7 +118,7 @@ export const devtoolsPlugin = (_options: DevtoolsPluginOptions = {}): vite.Plugi
117118 }
118119
119120 // babel doesn't work with typescript by default
120- plugins . unshift ( [ babelTsSyntaxPlugin , { isTSX : is_jsx } ] )
121+ plugins . unshift ( [ plugin_ts_syntax , { isTSX : is_jsx } ] )
121122
122123 const result = await transformAsync ( source , {
123124 babelrc : false ,
You can’t perform that action at this time.
0 commit comments