@regex-radar/recheck-scalajs-wasm
v4.5.0
Published
The ScalaJS WASM implementation of recheck - distributed in ESM format
Maintainers
Readme
recheck-scalajs-wasm
[!NOTE]
This is a custom distribution containing the WASM build output of
recheckto enable consumers to try the experimental WASM target for therecheckpackage. When (and if) a WASM build is available inrecheck, this repo/package will be archived.
[!WARNING]
The ScalaJS WASM backend is still in experimental status, check the docs to see its limitations, risks and drawbacks.
API
This distribution provides the following API:
// esm-recheck provides the original API
import { check } from '@regex-radar/recheck-scalajs-wasm';
// NOTE: this is the sync function, and can be computationally heavy and thus block any UI running on the same thread.
const result = check('(a|aa)+', 'g');Node.JS flags
NodeJS requires the following flags:
--experimental-wasm-exnref
The following flags are optional, but may improve performance:
--experimental-wasm-imported-strings
Build
This repository/package is a distribution of the build output of rechecks compilation with WASM as its target. similar to the native and jar build targets of recheck.
The build output is not included in the git index, because they are output files from building recheck. The files that are copied from recheck:
cp modules/recheck-wasm/target/scala-2.13/recheck-wasm-opt/ lib/recheck
For more information about recheck see:
