Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function parseAst(contents: string, options?: { loc: boolean }) {
let opts = { jsx: true, next: false, module: true, ...(options || {}) };
return meriyah.parse(contents, opts);
}