Skip to content

Commit

Permalink
Fix: Add module & moduleResolution to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Feb 7, 2022
1 parent 929b70a commit c492d3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-coins-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zazen/cli': patch
---

Add `module` & `moduleResolution` to tsconfig
5 changes: 3 additions & 2 deletions src/config/tsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ export function buildTsConfig() {

jsx: 'preserve',
lib: ['dom', 'esnext'],
module: 'esnext',
moduleResolution: 'node',
noEmit: true,
noUnusedLocals: true,
resolveJsonModule: true,

/**
* Significant perf increase by skipping checking .d.ts files,
* particularly those in node_modules. Recommended by TS.
*/
skipLibCheck: true,

resolveJsonModule: true,
},
include: includes,
}
Expand Down
4 changes: 1 addition & 3 deletions src/context.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import context from './context/index.js'

export default context
export { default } from './context/index.js'

0 comments on commit c492d3e

Please sign in to comment.