Skip to content

Commit

Permalink
baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 10, 2023
1 parent 555d17b commit b32cb11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface Options {
keepClassNames?: boolean
externalHelpers?: boolean
react?: Partial<ReactConfig>
baseUrl?: string
paths?: {
[from: string]: [string]
}
Expand Down
1 change: 1 addition & 0 deletions packages/register/read-default-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export function tsCompilerOptionsToSwcConfig(options: ts.CompilerOptions, filena
useBuiltins: true,
}
: undefined,
baseUrl: resolve(options.baseUrl ?? './'),
paths: Object.fromEntries(
Object.entries(options.paths ?? {}).map(([aliasKey, aliasPaths]) => [
aliasKey,
Expand Down

0 comments on commit b32cb11

Please sign in to comment.