Skip to content

Commit

Permalink
fix: respect sourceMaps swcrc value (swc-project#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyddall authored Nov 15, 2023
1 parent 9330c1a commit df125c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ function transformOption(path: string, options?: Options, jest = false): SwcOpti
}
: undefined),
},
sourceMaps: jest || typeof opts.sourcemap === 'undefined' ? 'inline' : opts.sourcemap,
sourceMaps: options?.swc?.swcrc
? undefined
: jest || typeof opts.sourcemap === 'undefined'
? 'inline'
: opts.sourcemap,
inlineSourcesContent: true,
swcrc: false,
...(options?.swc ?? {}),
Expand Down

0 comments on commit df125c8

Please sign in to comment.