-
Notifications
You must be signed in to change notification settings - Fork 992
Typescript ESM CJS references
James Beard edited this page Dec 16, 2023
·
5 revisions
Nextjs fails to detect ESM modules correctly when using exports in package.json
Ran into problem with tsup generating d.ts files with incorrect export section export default blah vs export = blah.
arethetypeswrong reported this as FalseExportDefault
Found a workaround in this tsup issue https://github.com/egoist/tsup/issues/572#issuecomment-1680153238 We may be able to remove "--cjsInterop --splitting" once that is addressed.