question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any plan for ES Modules ?

See original GitHub issue

Hello,

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 .jsat 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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
regnisolbapcommented, Mar 25, 2019

@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 !

2reactions
juliangarniercommented, Jan 9, 2019

ES Modules are now supported in V3 !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found