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

How do I import with es6? #8

Open
ralyodio opened this issue Nov 18, 2022 · 1 comment
Open

How do I import with es6? #8

ralyodio opened this issue Nov 18, 2022 · 1 comment

Comments

@ralyodio
Copy link

This gives me an error:

import { markdown } from '/static/scripts/lib/drawdown.js';

@sergiienko
Copy link

Append /static/scripts/lib/drawdown.js with export { markdown };.

Or another way, append export default markdown; and then import as import markdown from '/static/scripts/lib/drawdown.js';

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