Skip to content

Commit

Permalink
fix: don't mutate transform options (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Feb 25, 2022
1 parent ed290a0 commit 0570cba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ function createTransformer(swcTransformOpts?: Options): Transformer {

return {
process(src, filename, jestOptions) {
set(computedSwcOptions, 'module.type', jestOptions.supportsStaticESM ? 'es6' : 'commonjs')

return transformSync(src, {
...computedSwcOptions,
module: {
Expand Down

0 comments on commit 0570cba

Please sign in to comment.