Skip to content

Commit 57a337d

Browse files
authored
limit "isolated .d.ts" for TS only
1 parent 7901cb8 commit 57a337d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Configuration.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ export default function Configuration(props: Props) {
468468
isChecked={!!(parsedSwcConfig.jsc?.experimental as Record<string, unknown>)
469469
?.emitIsolatedDts}
470470
onChange={handleToggleIsolatedDts}
471-
disabled={semver.lt(props.swcVersion, '1.10.0')}
471+
disabled={semver.lt(props.swcVersion, '1.10.0') ||
472+
parsedSwcConfig.jsc?.parser?.syntax !== 'typescript'}
472473
/>
473474
<FormLabel htmlFor="emit-isolated-dts" ml="2" mb="0">
474475
Emit Isolated .d.ts

0 commit comments

Comments
 (0)