Skip to content

Commit 41fac7c

Browse files
committed
fix: do not initialise nodePathPlugin early
Its dependency on the ast-types scopePlugin runs too early, before some type definitions it depends on are finalized.
1 parent 39a6f38 commit 41fac7c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/babel/babelAstTypes.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import lodash from 'lodash'
66
const { memoize, omit, mapValues } = lodash
77
import fork from 'ast-types/fork'
88
import { Fork } from 'ast-types/types'
9-
import nodePathPlugin from 'ast-types/lib/node-path'
109

1110
const babelAstTypes: (t?: typeof defaultTypes) => ReturnType<typeof fork> =
1211
memoize((t: typeof defaultTypes = defaultTypes): ReturnType<typeof fork> => {
@@ -15,8 +14,6 @@ const babelAstTypes: (t?: typeof defaultTypes) => ReturnType<typeof fork> =
1514
const { builtInTypes, Type } = types
1615
const { def, or } = Type
1716

18-
fork.use(nodePathPlugin)
19-
2017
def('Node').field('type', builtInTypes.string)
2118
def('Comment')
2219
.field('type', builtInTypes.string)

0 commit comments

Comments
 (0)