UNPKG
estree-to-babel
Version:
latest (11.1.0)
11.1.0
11.0.3
11.0.2
11.0.1
11.0.0
10.5.0
10.4.0
10.3.0
10.2.0
10.1.0
10.0.1
10.0.0
9.1.0
9.0.0
8.1.1
8.1.0
8.0.0
7.0.0
6.0.0
5.2.0
5.1.0
5.0.1
5.0.0
4.9.0
4.8.0
4.7.0
4.6.0
4.5.0
4.4.0
4.3.0
4.2.0
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.2.1
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
convert estree ast to babel
github.com/coderaiser/estree-to-babel
coderaiser/estree-to-babel
estree-to-babel
/
lib
/
convert-import-declaration.js
7 lines
(5 loc)
•
127 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
;
module
.
exports
=
(
path
) =>
{
const
{attributes = []} = path.
node
; path.
node
.
attributes
= attributes; };