File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " solid-devtools " : patch
3+ ---
4+
5+ fix: babel plugin resolution by importing @babel/plugin-syntax-typescript instead of passing it as a string
Original file line number Diff line number Diff line change @@ -2,6 +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+ // @ts -expect-error
6+ import plugin_ts_syntax from '@babel/plugin-syntax-typescript'
57import * as babel from '../babel.ts'
68
79export const enum DevtoolsModule {
@@ -116,7 +118,7 @@ export const devtoolsPlugin = (_options: DevtoolsPluginOptions = {}): vite.Plugi
116118 }
117119
118120 // babel doesn't work with typescript by default
119- plugins . unshift ( [ '@babel/plugin-syntax-typescript' , { isTSX : is_jsx } ] )
121+ plugins . unshift ( [ plugin_ts_syntax , { isTSX : is_jsx } ] )
120122
121123 const result = await transformAsync ( source , {
122124 babelrc : false ,
You can’t perform that action at this time.
0 commit comments