-
Notifications
You must be signed in to change notification settings - Fork 307
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there plan for ES Module support? #262
Comments
I did a quick test with browserify and the plugin efmify but it does not look like I can easily convert the editor to an ESM compatible package. |
+1 here too! Seems like there is a lot of opportunity to reduce the codemirror bundle size through selective imports. |
+1 |
How do I import this library whether it's ES Modules or not? I don't see any examples using |
Using npm you can import it like any other npm package: https://docs.npmjs.com/using-npm-packages-in-your-projects Otherwise use one of the CDN scripts, the editor will then be available globally. |
I tried this: import EasyMDE from "easymde";
new EasyMDE(); And I got:
|
Everything in the title!
(thanks for this great fork 馃憤 )
The text was updated successfully, but these errors were encountered: