Skip to content

Commit b57aeb8

Browse files
behroozkBrooooooklyn
authored andcommitted
Ensure SWC config respects TS inline source map option
1 parent 9e53df0 commit b57aeb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/register/read-default-tsconfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ export function tsCompilerOptionsToSwcConfig(options: ts.CompilerOptions, filena
118118
module: toModule(options.module ?? ts.ModuleKind.ES2015),
119119
target: toTsTarget(target),
120120
jsx: isJsx,
121-
sourcemap: options.sourceMap && options.inlineSourceMap ? 'inline' : Boolean(options.sourceMap),
121+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
122+
sourcemap: options.sourceMap || options.inlineSourceMap ? 'inline' : Boolean(options.sourceMap),
122123
experimentalDecorators: options.experimentalDecorators ?? false,
123124
emitDecoratorMetadata: options.emitDecoratorMetadata ?? false,
124125
useDefineForClassFields: getUseDefineForClassFields(options, target),

0 commit comments

Comments
 (0)