Skip to content

Commit 6672890

Browse files
committed
feat: Add Zstandard wasm
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 <[email protected]>
1 parent 8e0be0e commit 6672890

26 files changed

+819
-100
lines changed

.vscode/launch.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@
1313
"webRoot": "${workspaceRoot}"
1414
},
1515
{
16-
"name": "helloworld.html",
16+
"name": "hw-graphviz.html",
1717
"type": "msedge",
1818
"request": "launch",
19-
"url": "http://localhost:8000/helloworld.html",
19+
"url": "http://localhost:8000/hw-graphviz.html",
20+
"webRoot": "${workspaceRoot}"
21+
},
22+
{
23+
"name": "hw-zstd.html",
24+
"type": "msedge",
25+
"request": "launch",
26+
"url": "http://localhost:8000/hw-zstd.html",
2027
"webRoot": "${workspaceRoot}"
2128
},
2229
{

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"type": "npm",
88
"label": "Compile Watch",
9-
"script": "compile-es6-watch",
9+
"script": "compile-watch",
1010
"problemMatcher": [
1111
"$tsc-watch"
1212
],

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ SET(EM_FLAGS
1919
"-s EXPORT_ES6=1"
2020
"-s IGNORE_CLOSURE_COMPILER_ERRORS=0"
2121
"-s USE_ES6_IMPORT_META=0"
22+
# "-s WASM_BIGINT=1"
2223
"--pre-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/pre.js"
2324
# "--post-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/post.js"
2425
)

0 commit comments

Comments
 (0)