updated dependencies, added IPLS tag, rewrote stuff with epic itty-router features
This commit is contained in:
parent
c09a27e99b
commit
7f6c507926
7 changed files with 998 additions and 614 deletions
|
@ -12,7 +12,7 @@ const js_path = `pkg/${pkg_name}.js`
|
|||
let loader_js = fs.readFileSync(js_path, 'utf8')
|
||||
|
||||
loader_js = `import wasmModule from './${pkg_name}_bg.wasm'\n\n` + loader_js
|
||||
loader_js = loader_js.replace('const { TextDecoder, TextEncoder } = require(String.raw`util`);\n', '')
|
||||
loader_js = loader_js.replace('const { TextDecoder, TextEncoder } = require(`util`);\n', '')
|
||||
loader_js = loader_js.replace(`const path = require('path').join(__dirname, '${pkg_name}_bg.wasm');\n`, '')
|
||||
loader_js = loader_js.replace("const bytes = require('fs').readFileSync(path);\n\n", '')
|
||||
loader_js = loader_js.replace('const wasmModule = new WebAssembly.Module(bytes);\n', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue