-
-
Notifications
You must be signed in to change notification settings - Fork 434
Closed
Description
Expected Behaviour
Able to bundle.
Actual Behaviour
errors such as:
Module not found: Error: Can't resolve './tersible.js'Steps to Reproduce the Problem
In TypeScript 4.7, the NodeNext module resolution requires the source code to specify the extension as .js.
e.g.:
// index.ts
export * from './tersible.js' // for `tersible.ts`For ts-jest on the jest side,
it solves that by doing a transformation:
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},Maybe something similar is needed?
Would be great to add a section in the readme specifically for that.
Location of a Minimal Repository that Demonstrates the Issue.
Not a minimal repo, but here is an example: https://github.com/unional/tersify.
Run yarn bundle in the repo
🌷
Metadata
Metadata
Assignees
Labels
No labels