you should use import.meta.resolve(moduleName) instead of new URL(moduleName, import.meta.url) for these use cases wherever possible
I'll make an issue in wasm-bindgen tomorrow.
Also, I think you’ll want to add the .wasm to your exports map in the package.json because these files are part of your module’s public API and you expect people to load them.
Should make an issue in wasm-bindgen
I see. That makes sense. MDN does say
I'll make an issue in wasm-bindgen tomorrow.
Thanks for pointing this out. I see duckdb-wasm does this too. https://github.com/duckdb/duckdb-wasm/blob/58fcb9a46b73eac1abb9b0dee9d7c46d1a84f628/packages/duckdb-wasm/package.json#L99-L101
Originally posted by @kylebarron in https://github.com/kylebarron/parquet-wasm/issues/489#issuecomment-2068478471