biscuit-auth / biscuit-wasm

WebAssembly wrapper for Biscuit authorization tokens
Apache License 2.0
24 stars 10 forks source link

Add full ESM support on Node #4

Closed burn2delete closed 1 year ago

burn2delete commented 1 year ago

The hybrid CJS/ESM package doesn't load on nodejs using native ESM packages and the --experimental-wasm-modules --experimental-specifier-resolution=node.

import * as wasm from "./biscuit_bg.wasm";
^^^^^^
SyntaxError: Cannot use import statement outside a module
Geal commented 1 year ago

fixed by #6