umap-js icon indicating copy to clipboard operation
umap-js copied to clipboard

ESM support

Open vladinator1000 opened this issue 10 months ago • 0 comments

Hi there, I'm trying to use umap-js with Vitest, but I'm getting this error:

TypeError: Cannot use require() to import an ES Module.
 ❯ .../node_modules/.pnpm/[email protected]/node_modules/umap-js/dist/umap.js?mf_vitest_no_cjs_esm_shim:8

Is ESM support planned for umap-js?

vladinator1000 avatar Jan 17 '25 02:01 vladinator1000