File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -eu
4+
35wasm-pack build --no-pack --out-name justified-layout-wasm --target web
6+ echo " export const MODULE: string;" > pkg/justified-layout-wasm-module.d.ts
47echo " Uint8Array.fromBase64 ??= (string) => Uint8Array.from(atob(string), (c) => c.charCodeAt(0));" > pkg/justified-layout-wasm-module.js
58echo " export const MODULE = Uint8Array.fromBase64('$( cat pkg/justified-layout-wasm_bg.wasm | base64 -w 0) ');" >> pkg/justified-layout-wasm-module.js
Original file line number Diff line number Diff line change 88 },
99 "files" : [
1010 " pkg/justified-layout-wasm.js" ,
11- " pkg/justified-layout-wasm_bg.js" ,
1211 " pkg/justified-layout-wasm-module.js" ,
13- " pkg/justified-layout-wasm.d.ts"
12+ " pkg/justified-layout-wasm.d.ts" ,
13+ " pkg/justified-layout-wasm-module.d.ts"
1414 ],
1515 "main" : " js/index.ts"
1616}
You can’t perform that action at this time.
0 commit comments