Open jcubic opened 1 year ago
Just found out about skypack you can add this to the README. To import the library in ES Module you can use this:
import Complex from "https://cdn.skypack.dev/complex.js";
There is also this option https://cdn.jsdelivr.net/npm/complex.js@2.1.1/complex.js/+esm
This issue has an impact on other ES modules which use complex.js (in my case @dice-roller/rpg-dice-roller).
I'm trying to this package as ES Module, even that it has some code:
ES Modules don't work from the browser.
throws:
and
throws:
and:
throws: