@jitl/quickjs-wasmfile-debug-sync
Version:
Variant of quickjs library: Variant with separate .WASM file. Supports browser ESM, NodeJS ESM, and NodeJS CommonJS.
21 lines (18 loc) • 1.5 kB
TypeScript
import { QuickJSSyncVariant } from '@jitl/quickjs-ffi-types';
/**
* ### @jitl/quickjs-wasmfile-debug-sync
*
* [Docs](https://github.com/justjake/quickjs-emscripten/blob/main/doc/@jitl/quickjs-wasmfile-debug-sync/README.md) |
* Variant with separate .WASM file. Supports browser ESM, NodeJS ESM, and NodeJS CommonJS.
*
* | Variable | Setting | Description |
* | -- | -- | -- |
* | library | quickjs | The original [bellard/quickjs](https://github.com/bellard/quickjs) library. Version [2024-02-14+36911f0d](https://github.com/bellard/quickjs/commit/36911f0d3ab1a4c190a4d5cbe7c2db225a455389) vendored to quickjs-emscripten on 2024-06-15. |
* | releaseMode | debug | Enables assertions and memory sanitizers. Try to run your tests against debug variants, in addition to your preferred production variant, to catch more bugs. |
* | syncMode | sync | The default, normal build. Note that both variants support regular async functions. |
* | emscriptenInclusion | wasm | Has a separate .wasm file. May offer better caching in your browser, and reduces the size of your JS bundle. If you have issues, try a 'singlefile' variant. |
* | exports | require import browser workerd | Has these package.json export conditions |
*
*/
declare const variant: QuickJSSyncVariant;
export { variant as default };