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

Support ES6 modules #10

Open
panuhorsmalahti opened this issue Apr 24, 2017 · 1 comment
Open

Support ES6 modules #10

panuhorsmalahti opened this issue Apr 24, 2017 · 1 comment

Comments

@panuhorsmalahti
Copy link

Modules don't allow exporting the whole module as a function in ES6:

microsoft/TypeScript#5867 (comment)

My suggestion for a fix is to export the function from the module instead of exporting the function as the module.

@bcomnes
Copy link

bcomnes commented Apr 24, 2017

Does this module not work with a specific es module loader? Do they not translate this into:

import simplifyGeojson, {simplify} from 'simplify-geojson'

?

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

No branches or pull requests

2 participants