Any plan for ES Modules ?
See original GitHub issueHello,
As ES Modules are now available in browsers (Safari Technology Preview 21+, Firefox 54+) do you have any plan to refactor it to make it compatible ?
I mean by that, real ES Modules, so with .js
at the end of the import (mandatory at the moment and compatible with bundlers), used within <script type="module">
, and without the factory story:
import anime from "./animejs/anime.js";
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
Top Results From Across the Web
The JavaScript Modules Handbook – Complete Guide to ES ...
This article will show you all you need to know about ES Modules and Module Bundlers in plain English. Table of Contents 1....
Read more >What you need to know about ES modules in Node.js
Confused about ES module support in Node.js? I've put together this short guide to help out.
Read more >ECMAScript modules | Node.js v19.3.0 Documentation
CommonJS modules consist of a module.exports object which can be of any type. When importing a CommonJS module, it can be reliably imported...
Read more >ES modules in Node.js 12, from experimental to release
At the time of writing, the new module implementation plan is in its third and final phase. Phase 3 is planned to be...
Read more >Native ES Modules in NodeJS: Status And Future Directions ...
ES Modules are coming to NodeJS. They're actually already here, behind a --experimental-modules flag. I recently gave a talk at NodeFest ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Kufgem, I imported it successfully in my typescript/webpack setup, just by doing
import anime from 'animejs/lib/anime.es.js'
Maybe it should appear in the Readme @juliangarnier ? Anyway thanks for this awesome lib, I’m just getting my hands into it but it’s wonderful !
ES Modules are now supported in V3 !