Skip to content

Commit

Permalink
remove import.meta reference from compiled ESM lib (not used anyway)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Apr 2, 2024
1 parent 922d324 commit 9b75629
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## v0.7.3 2024-04-02
### Changed
- removed references to `import.meta` in the compiled files, using `USE_ES6_IMPORT_META=0` compilation flag for emscripten. It shouldn't matter in any case, as it is compiled in single-file mode and there are no external imports at runtime.

*Note that this enables bundling `h5wasm` into a worker without requiring `{type: "module"}`*
## v0.7.2 2024-02-29
### Added
- new optional HDF5 error handler that throws Javascript error (old handler printed **HDF5-DIAG** error strings using `console.error()`, but did not throw a JS `Error`)
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ set_target_properties(hdf5_util PROPERTIES
-s ENVIRONMENT=web,worker \
-s SINGLE_FILE \
-s EXPORT_ES6=1 \
-s USE_ES6_IMPORT_META=0 \
-s FORCE_FILESYSTEM=1 \
-s EXPORTED_RUNTIME_METHODS=\"['ccall', 'cwrap', 'FS', 'AsciiToString', 'UTF8ToString']\" \
-s EXPORTED_FUNCTIONS=\"${EXPORTED_FUNCTIONS_STRING}\""
Expand Down

0 comments on commit 9b75629

Please sign in to comment.