Skip to content

Commit

Permalink
Use babel parser rather than Babylon in extract errors (#17988)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Feb 6, 2020
1 parent 9e158c0 commit df134d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/error-codes/extract-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
'use strict';

const babylon = require('babylon');
const parser = require('@babel/parser');
const fs = require('fs');
const path = require('path');
const traverse = require('@babel/traverse').default;
Expand Down Expand Up @@ -65,7 +65,7 @@ module.exports = function(opts) {
existingErrorMap = invertObject(existingErrorMap);

function transform(source) {
const ast = babylon.parse(source, babylonOptions);
const ast = parser.parse(source, babylonOptions);

traverse(ast, {
CallExpression: {
Expand Down

0 comments on commit df134d3

Please sign in to comment.