Skip to content

Commit

Permalink
feat: Add Zstandard wasm
Browse files Browse the repository at this point in the history
Relocate test bundle location.
Experiment with @rollup/plugin-wasm (it has an issue with esm NodeJS).
Switch to "webview" target for emscripten (less JS loading logic).

Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
  • Loading branch information
GordonSmith committed Nov 1, 2022
1 parent 8e0be0e commit 6672890
Show file tree
Hide file tree
Showing 26 changed files with 819 additions and 100 deletions.
11 changes: 9 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@
"webRoot": "${workspaceRoot}"
},
{
"name": "helloworld.html",
"name": "hw-graphviz.html",
"type": "msedge",
"request": "launch",
"url": "http://localhost:8000/helloworld.html",
"url": "http://localhost:8000/hw-graphviz.html",
"webRoot": "${workspaceRoot}"
},
{
"name": "hw-zstd.html",
"type": "msedge",
"request": "launch",
"url": "http://localhost:8000/hw-zstd.html",
"webRoot": "${workspaceRoot}"
},
{
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"type": "npm",
"label": "Compile Watch",
"script": "compile-es6-watch",
"script": "compile-watch",
"problemMatcher": [
"$tsc-watch"
],
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SET(EM_FLAGS
"-s EXPORT_ES6=1"
"-s IGNORE_CLOSURE_COMPILER_ERRORS=0"
"-s USE_ES6_IMPORT_META=0"
# "-s WASM_BIGINT=1"
"--pre-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/pre.js"
# "--post-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/post.js"
)
Expand Down

0 comments on commit 6672890

Please sign in to comment.