Skip to content

Commit acd869f

Browse files
committed
chore(compiler-sfc): avoid relying on estree type in generated dts
1 parent d74f21a commit acd869f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compiler-sfc/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export {
1414
export { parse as babelParse } from '@babel/parser'
1515
import MagicString from 'magic-string'
1616
export { MagicString }
17-
export { walk } from 'estree-walker'
17+
// technically internal but we want it in @vue/repl, cast it as any to avoid
18+
// relying on estree types
19+
import { walk as _walk } from 'estree-walker'
20+
export const walk = _walk as any
1821
export {
1922
generateCodeFrame,
2023
walkIdentifiers,

0 commit comments

Comments
 (0)