Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema-wasm): support environments other than Node.js
Previously we generated wasm-bindgen bindings for `@prisma/prisma-schema-wasm` with `--target nodejs`. This makes the generated glue code use Node.js `fs` module to load the WebAssembly module from disk and then instantiate it from an array of bytes. This commit change this to `--target bundler` which is what we use for driver adapters. This makes wasm-bindgen use `import` statement to load the WebAssembly module instead.
- Loading branch information