Skip to content

Commit d8b07ff

Browse files
committed
fix(main): support both api of TsChecker #44
1 parent 6aeda59 commit d8b07ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-app-alias-ex/src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ function expandPluginsTsChecker(plugins, configPath) {
9696
...(opts.compilerOptions || {}),
9797
paths,
9898
}
99-
const options = {
99+
const typescriptIsString = String(opts.typescript) === opts.typescript
100+
const options = typescriptIsString ? {
101+
...opts, compilerOptions
102+
} : {
100103
...opts,
101104
typescript: {
102105
...opts.typescript,

0 commit comments

Comments
 (0)