@@ -6,8 +6,8 @@ import { createRequire } from 'module';
6
6
import solidRefresh from 'solid-refresh/babel' ;
7
7
// TODO use proper path
8
8
import type { Options as RefreshOptions } from 'solid-refresh/babel' ;
9
+ import type { Alias , AliasOptions , FilterPattern , Plugin } from 'vite' ;
9
10
import { createFilter } from 'vite' ;
10
- import type { Alias , AliasOptions , Plugin , FilterPattern } from 'vite' ;
11
11
import { crawlFrameworkPkgs } from 'vitefu' ;
12
12
13
13
const require = createRequire ( import . meta. url ) ;
@@ -312,7 +312,19 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
312
312
313
313
return extensionOptions . typescript ;
314
314
} ) ;
315
- const plugins : NonNullable < NonNullable < babel . TransformOptions [ 'parserOpts' ] > [ 'plugins' ] > = [ 'jsx' ]
315
+ const plugins : NonNullable < NonNullable < babel . TransformOptions [ 'parserOpts' ] > [ 'plugins' ] > = [
316
+ 'jsx' ,
317
+ // import { example } from 'example' with { example: true };
318
+ 'importAttributes' ,
319
+ // () => throw example
320
+ 'throwExpressions' ,
321
+ // You know what this is
322
+ 'decorators' ,
323
+ // const { #example: example } = this;
324
+ 'destructuringPrivate' ,
325
+ // using example = myExample()
326
+ 'explicitResourceManagement' ,
327
+ ] ;
316
328
317
329
if ( shouldBeProcessedWithTypescript ) {
318
330
plugins . push ( 'typescript' ) ;
0 commit comments