Skip to content

Commit

Permalink
fix: Resolve jsc.baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 12, 2023
1 parent 5e52816 commit b17afb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ function buildSwcTransformOpts(swcOptions: (Options & { experimental?: unknown }
set(computedSwcOptions, 'sourceMaps', 'inline')
}

if (computedSwcOptions.jsc?.baseUrl) {
set(computedSwcOptions, 'jsc.baseUrl', path.resolve(computedSwcOptions.jsc.baseUrl))
}

return computedSwcOptions
}

Expand Down

0 comments on commit b17afb5

Please sign in to comment.