-
Notifications
You must be signed in to change notification settings - Fork 299
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
Support export default (Typescript related) #62
Conversation
@mourner 👍 Do you mind if I send send more PR's to all your MANY other repos? |
@DenisCarriere yeah, no harm from a change like this :) |
@mourner Sounds good! Should I bump the |
@DenisCarriere no, it's better for me to do |
Oh gotcha! 👍 (maybe I should do the same when I publish my repos 😄 ) |
Expect ~5-10 PR's |
@mourner Should be done now for the Thanks for the quick merges 👍 |
Support export default (Typescript related)
Mainly used for Typescript support, other bundlers like Rollup/Babel use some other "magic" to support default exports.
Same thing was done for concaveman & polylabel (PR mapbox/polylabel#10):
An update to the Typescript definition has already been made to reflect this change: DefinitelyTyped/DefinitelyTyped#20348
Rollup "magic" (import default)
Gets compile to:
Rollup "no-magic" (import without default)
Gets compile to:
CC: @alex3165 @mourner