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

No default es6 export #33

Closed
goldfire opened this issue Aug 21, 2018 · 1 comment
Closed

No default es6 export #33

goldfire opened this issue Aug 21, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@goldfire
Copy link

Not a big deal, but when using this with webpack/babel, the following doesn't work:

import polygonClipping from 'polygon-clipping';

You are forced to used the require syntax in order for the module to be found.

@mfogel mfogel added the bug Something isn't working label Aug 21, 2018
@mfogel mfogel added this to the 0.8 milestone Aug 28, 2018
@mfogel mfogel changed the title Import doesn't work No default es6 export Aug 28, 2018
@mfogel
Copy link
Owner

mfogel commented Aug 28, 2018

Thanks for the bug report @goldfire, appreciate it

I'm going to fix this in the next version so the import syntax you have above works, but it looks like on the current version (0.7) you can do

    import * as polygonClipping from 'polygon-clipping'

@mfogel mfogel closed this as completed in ac81217 Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants