Skip to content

Commit

Permalink
Merge pull request #725 from eliellis/master-1
Browse files Browse the repository at this point in the history
Fix #716
  • Loading branch information
Brooooooklyn authored Oct 21, 2023
2 parents 4257e76 + 2f0199b commit c706f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/register/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export function compile(
}

export function register(options: Partial<ts.CompilerOptions> = {}, hookOpts = {}) {
if (!process.env.SWCRC) {
options = readDefaultTsConfig()
if (!process.env.SWCRC) {
options = Object.keys(options).length ? options : readDefaultTsConfig()
}
options.module = ts.ModuleKind.CommonJS
installSourceMapSupport()
Expand Down

0 comments on commit c706f17

Please sign in to comment.