Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(schema-wasm): support edge runtimes in addition to Node.js #4950

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 11, 2024

  1. 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
    `query-engine-wasm`. This makes wasm-bindgen use `import` statement to
    load the WebAssembly module instead.
    
    This is a breaking change, and requires updating Prisma CLI and language
    tools.
    aqrln committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2ffa63f View commit details
    Browse the repository at this point in the history