Skip to content

Commit

Permalink
Merge pull request #2497 from ianzone/swc-apply-tsconfig-sourcemap
Browse files Browse the repository at this point in the history
Update swc-defaults.ts to apply tsconfig source map options.
  • Loading branch information
kamilmysliwiec committed Feb 5, 2024
2 parents 3ddd7a5 + 5eddbea commit cd8827f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compiler/defaults/swc-defaults.ts
Expand Up @@ -12,6 +12,7 @@ export const swcDefaultsFactory = (

return {
swcOptions: {
sourceMaps: tsOptions?.sourceMap || (tsOptions?.inlineSourceMap && 'inline'),
module: {
type: 'commonjs',
},
Expand Down

0 comments on commit cd8827f

Please sign in to comment.