Skip to content

Commit 38327a9

Browse files
committed
feature: @putout/engine-parser: estree-to-babel v11.0.0
1 parent 119d0b7 commit 38327a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/engine-parser/lib/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const toBabel = require('estree-to-babel');
3+
const {estreeToBabel} = require('estree-to-babel');
44
const customParser = require('./custom-parser');
55
const {tryThrowWithReason} = require('./try-throw-with-reason');
66
const {assign} = Object;
@@ -32,7 +32,7 @@ const getParser = ({parser = 'babel', isTS, isJSX, printer}) => ({
3232
convertParens: false,
3333
});
3434

35-
const ast = toBabel(customParser(source, parser, {
35+
const ast = estreeToBabel(customParser(source, parser, {
3636
isTS,
3737
isJSX,
3838
printer,

packages/engine-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@putout/babel": "^3.0.0",
3737
"@putout/printer": "^14.0.0",
3838
"align-spaces": "^2.0.0",
39-
"estree-to-babel": "^10.0.0",
39+
"estree-to-babel": "^11.0.0",
4040
"nano-memoize": "^3.0.11",
4141
"once": "^1.4.0",
4242
"try-catch": "^3.0.0"

0 commit comments

Comments
 (0)