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

allow es6 import/require #29

Closed
ppisljar opened this issue May 23, 2017 · 2 comments
Closed

allow es6 import/require #29

ppisljar opened this issue May 23, 2017 · 2 comments

Comments

@ppisljar
Copy link

its not possible to require/import circos ....

in circos.js, add this on the end:

module.exports = Circos;

this will allow to import like this:
import Circos from 'circos/dist/circos'

to allow direct inclussion add index.js directly in the circos folder with this content: (first change is still needed)

module.exports = require('./dist/circos');

now its possible to include like
import Circos from 'circos';

@boomler
Copy link

boomler commented May 29, 2017

Yes. It solved my problem.

@nicgirault
Copy link
Owner

Thanks @ppisljar for the feedback. It is now available for versions 2.0.5+

@uros-r uros-r mentioned this issue Jul 9, 2017
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

3 participants