mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
nuke typescript support
This commit is contained in:
parent
9bf911bb0c
commit
13e0656df6
2 changed files with 6 additions and 1 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
@ -39,6 +39,9 @@ jobs:
|
|||
with:
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup wasm-snip
|
||||
run: "cargo install --git https://github.com/r58playz/wasm-snip"
|
||||
|
||||
- name: Pack Scramjet
|
||||
run: pnpm pack
|
||||
|
||||
|
|
|
@ -29,8 +29,10 @@ sed -i 's/import.meta.url/""/g' out/wasm.js
|
|||
|
||||
cd ../../
|
||||
|
||||
wasm-snip rewriter/wasm/out/wasm_bg.wasm -o rewriter/wasm/out/wasm_snipped.wasm -p 'oxc_regular_expression::.*' -p 'oxc_parser::ts::.*'
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
time wasm-opt $WASMOPTFLAGS --converge -tnh -O4 --vacuum --dce --enable-threads --enable-bulk-memory --enable-simd rewriter/wasm/out/wasm_bg.wasm -o rewriter/wasm/out/optimized.wasm
|
||||
time wasm-opt $WASMOPTFLAGS --converge -tnh -O4 --vacuum --dce --enable-threads --enable-bulk-memory --enable-simd rewriter/wasm/out/wasm_snipped.wasm -o rewriter/wasm/out/optimized.wasm
|
||||
|
||||
mkdir -p dist/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue