How to use the meriyah.parse function in meriyah

To help you get started, we’ve selected a few meriyah examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fuse-box / fuse-box / src / transform / fastTransform / fastTransform.ts View on Github external
export function parseAst(contents: string, options?: { loc: boolean }) {
  let opts = { jsx: true, next: false, module: true, ...(options || {}) };

  return meriyah.parse(contents, opts);
}

meriyah

A 100% compliant, self-hosted javascript parser with high focus on both performance and stability

ISC
Latest version published 15 days ago

Package Health Score

84 / 100
Full package analysis