Skip to content

Commit

Permalink
Move module resolution before config (#8448)
Browse files Browse the repository at this point in the history
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
  • Loading branch information
kkirby and mischnic committed Oct 24, 2022
1 parent a5fb028 commit 041d633
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,6 +25,7 @@ export default (new Transformer({
// React is the default. Users can override this by supplying their own tsconfig,
// which many TypeScript users will already have for typechecking, etc.
jsx: ts.JsxEmit.React,
moduleResolution: ts.ModuleResolutionKind.NodeJs,
...config,
// Always emit output
noEmit: false,
Expand All @@ -34,7 +35,6 @@ export default (new Transformer({
isolatedModules: false,
emitDeclarationOnly: true,
outFile: 'index.d.ts',
moduleResolution: ts.ModuleResolutionKind.NodeJs,
// createProgram doesn't support incremental mode
composite: false,
incremental: false,
Expand Down

0 comments on commit 041d633

Please sign in to comment.