usnistgov/h5wasm

Web helpers

Opened this issue · 1 comments

We have an issue when importing the web helpers from file_handlers.js in a typescript project:

Package path ./dist/esm/file_handlers.js is not exported from package <path_to_project>\node_modules\h5wasm (see exports field in <path_to_project>\node_modules\h5wasm\package.json)

Changing "exports" in h5wasm/packages.json to

"exports": {
".": {
"node": "./dist/node/hdf5_hl.js",
"import": "./dist/esm/hdf5_hl.js"
},
"./dist/esm/file_handlers.js": "./dist/esm/file_handlers.js"
},

works, but may not be the desired solution.

Your solution looks pretty reasonable... I will check it out and see if it interferes with anything else. Thanks!