Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add exports.default #20

Closed
wants to merge 1 commit into from
Closed

Conversation

luckydrq
Copy link

add exports.default to resolve typescript import(#14)

@luckydrq
Copy link
Author

Reason: #18 (comment)

@fregante
Copy link

fregante commented Nov 24, 2020

This is just a patch for incorrect underlying code. This only works because for years bundlers have tried to shoehorn ESM into CJS concepts, but the 2 are not equivalent.

If the module is CJS it should not use export default.

#18 is the correct way.

@luckydrq
Copy link
Author

This is just a patch for incorrect underlying code. This only works because for years bundlers have tried to shoehorn ESM into CJS concepts, but the 2 are not equivalent.

If the module is CJS it should not use export default.

#18 is the correct way.

All right.
Either adding exports.default for the module or using export = in declaration is good to me. So when will #18 get merged?

@luckydrq
Copy link
Author

ping @jonschlinkert

@luckydrq luckydrq closed this Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants