Skip to content

Browser variant of oxc-parser is mising visitorKeys #21995

@NullVoxPopuli

Description

@NullVoxPopuli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions