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

ES6 / ES2015 module import #56

Closed
yairEO opened this issue Aug 11, 2018 · 1 comment
Closed

ES6 / ES2015 module import #56

yairEO opened this issue Aug 11, 2018 · 1 comment
Labels

Comments

@yairEO
Copy link

yairEO commented Aug 11, 2018

How can one import the ajax method, or basically anything from your ajax.min.js if the export keyword isn't used anywhere in your code? I'm confused. it that even possible?

@fdaciuk
Copy link
Owner

fdaciuk commented Aug 13, 2018

Hi @yairEO! It just works because interop with CommonJS

I've exported the module using UMD. Check it out:
https://github.com/fdaciuk/ajax/blob/dev/src/ajax.js#L1-L11

And here it is the place I'm exporting the lib using CommonJS

=)

@fdaciuk fdaciuk closed this as completed Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants