Skip to content

Commit ed27858

Browse files
committed
(env/deps): use agilgur5/tsdx fork for esModuleInterop etc
- this uses my fork which merged my PR/commit that fixes the missing __esModule in CJS build output - which has been an issue in this library since adopting tsdx, as that's still an undocumented bug in tsdx - the bug means that default imports get transpiled to x = require instead of { default: x } = require - which affects anyone using CJS and importing the default export - and most apps still transpile down, as do most test runners, so basically it affects almost everyone using the default - for more details, see #12 - until this fix is merged and released in the root library, will be using this fork - it also has my recently merged PR/commit that changes the cacheRoot to ./node_modules/.cache/ instead of ./rts2_cache_* directories - can remove them from gitignore and they no longer clutter app root
1 parent 40e9912 commit ed27858

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
### tsdx ###
22

33
dist/
4-
.rts2_cache_cjs
5-
.rts2_cache_esm
6-
.rts2_cache_umd
74
coverage/
85

96
### Node ###

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@types/jest": "^24.0.23",
4444
"mobx": "^5.11.0",
4545
"mobx-state-tree": "^3.14.0",
46-
"tsdx": "^0.11.0",
46+
"tsdx": "github:agilgur5/tsdx#dist",
4747
"typescript": "^3.5.2"
4848
}
4949
}

0 commit comments

Comments
 (0)