File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { FilterPattern } from '@rollup/pluginutils'
2
- import type { JscConfig , Options as SwcOptions , TransformConfig } from '@swc/core'
2
+ import type { JscConfig , JscTarget , Options as SwcOptions , TransformConfig } from '@swc/core'
3
+ import type { CompilerOptions } from 'typescript'
3
4
import path from 'node:path'
4
5
import { createFilter } from '@rollup/pluginutils'
5
6
import { transform } from '@swc/core'
@@ -37,7 +38,7 @@ export default createUnplugin<Options | undefined, false>(
37
38
if ( ! filter ( id ) )
38
39
return null
39
40
40
- const compilerOptions
41
+ const compilerOptions : CompilerOptions
41
42
= tsconfigFile === false
42
43
? { }
43
44
: loadTsConfig (
@@ -81,7 +82,7 @@ export default createUnplugin<Options | undefined, false>(
81
82
}
82
83
83
84
if ( compilerOptions . target ) {
84
- jsc . target = compilerOptions . target
85
+ jsc . target = compilerOptions . target as unknown as JscTarget
85
86
}
86
87
87
88
if ( compilerOptions . useDefineForClassFields != null ) {
You can’t perform that action at this time.
0 commit comments