Closed callmehiphop closed 5 years ago
Has this bug been reported to TypeScript? TypeScript should not generate import default
in the .d.ts
file.
@bfred-it Is this a TypeScript bug though? I assumed if my project had esModuleInterop
set to false, it would apply that same configuration to my dependencies as well.
The bug is: generating a .d.ts
file that doesn’t work with all TS configurations.
import default from ‘cjs’
only works in the current project because there’s a setting that enables it, but it should be a “temporary illusion” just for us, it shouldn’t then cause trouble to the users of this module.
It would be different if TS just supported esModuleInterop out of the box for everyone, without giving an option.
Started seeing this error popup