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 #74

Open
crenshaw-dev opened this issue Jun 26, 2018 · 0 comments
Open

Support es6 modules #74

crenshaw-dev opened this issue Jun 26, 2018 · 0 comments

Comments

@crenshaw-dev
Copy link

const autoComplete = require('javascript-autocomplete') works nicely.

It would be nice to use newer syntax, something like import { autoComplete } from 'javascript-autocomplete'.

A hackish solution would be something like this.

module.js:

const autoComplete = require('auto-complete');
export default autoComplete;

my-app.js:

import { autoComplete } from 'javascript-autocomplete/module'

I'm not sure the impact of that setup on bundlers like webpack. But seems like it should be at least functional.

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

1 participant