We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We're getting this warning in tests:
Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.
Need:
diff --git a/packages/trace-deps/lib/trace.js b/packages/trace-deps/lib/trace.js index bce66bd..5a96095 100644 --- a/packages/trace-deps/lib/trace.js +++ b/packages/trace-deps/lib/trace.js @@ -543,7 +543,7 @@ const traceFile = async ({ } catch (modErr) { // Then as script. try { - ast = parse(src, { sourceType: "script", locations: true, onComment }); + ast = parse(src, { sourceType: "script", ecmaVersion: "latest", locations: true, onComment }); } catch (scriptErr) { // Use original module error, with some helper errors. throw new Error(`Encountered parse error in ${srcPath}: ${modErr}`);
The text was updated successfully, but these errors were encountered:
Add ecmaVersion to all Acorn parse calls (fixes #2).
ecmaVersion
parse
4451bd4
0810a53
Successfully merging a pull request may close this issue.
We're getting this warning in tests:
Need:
The text was updated successfully, but these errors were encountered: