Closed ellsclytn closed 3 years ago
Merging #15 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #15 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 39 39
Branches 6 6
=========================================
Hits 39 39
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 4c7b4b6...e1a7437. Read the comment docs.
Thanks @ellsclytn ❤️
The module was incorrectly stating that there's a
default
export, which is not true of the actual code (wherein it has amodule.exports
equal to the entrypoint).You can recreate this fairly easily with the following:
tsconfig.json
index.ts
This will pass TypeScript compilation, but will fail at runtime because the compiled JavaScript will be looking for a
.default
property on the module, which is not present.With this commit applied, tsconfig will require
"esModuleInterop": true
to pass compilation in the first place, and will work at runtime.