quickjs-emscripten • @jitl/quickjs-singlefile-browser-release-asyncify • Readme | Exports
quickjs-emscripten / @jitl/quickjs-singlefile-browser-release-asyncify
const
default:QuickJSAsyncVariant
Docs | Variant with the WASM data embedded into a browser ESModule.
Variable | Setting | Description |
---|---|---|
library | quickjs | The original bellard/quickjs library. Version 2024-02-14+36911f0d vendored to quickjs-emscripten on 2024-06-15. |
releaseMode | release | Optimized for performance; use when building/deploying your application. |
syncMode | asyncify | Build run through the ASYNCIFY WebAssembly transform. This imposes substantial size (2x the size of sync) and speed penalties (40% the speed of sync). In return, allows synchronous calls from the QuickJS WASM runtime to async functions on the host. The extra magic makes this variant slower than sync variants. Note that both variants support regular async functions. Only adopt ASYNCIFY if you need to! The QuickJSAsyncRuntime and QuickJSAsyncContext classes expose the ASYNCIFY-specific APIs. |
emscriptenInclusion | singlefile | The WASM runtime is included directly in the JS file. Use if you run into issues with missing .wasm files when building or deploying your app. |
exports | browser | Has these package.json export conditions |
Generated using typedoc-plugin-markdown and TypeDoc