-
I am trying to find a way to load mathjs library as a module in the browser. The documentation is very brief about it and suggests I am also OK with building mathjs locally in order to add it to my html/js files, but I guess I still need to create a single bundle file from which I can import. Unfortunately, simply using the browser version doesn't work for me neither. I am trying to load mathjs in a web worker alongside another library, which is ESM-only. I believe the question is similar to #2784 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like I found the solution!
|
Beta Was this translation helpful? Give feedback.
Looks like I found the solution!
import * as math from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';