Ran in to this here: sxzz/ast-explorer#263
package.json for oxc-parser has:
"main": "src-js/index.js",
"browser": "src-js/wasm.js",
and wasm.js has just:
export * from "@oxc-parser/binding-wasm32-wasi";
import * as bindings from "@oxc-parser/binding-wasm32-wasi";
import { wrap } from "./wrap.js";
export async function parse(...args) {
return wrap(await bindings.parse(...args));
}
export function parseSync(filename, sourceText, options) {
return wrap(bindings.parseSync(filename, sourceText, options));
}
which excludes visitorKeys, which is present in the node bundle.
Ran in to this here: sxzz/ast-explorer#263
package.json for oxc-parser has:
and wasm.js has just:
which excludes visitorKeys, which is present in the node bundle.