chore(compiler-sfc): avoid relying on estree type in generated dts

This commit is contained in:
Evan You 2021-09-23 00:13:54 -04:00
parent d74f21a42c
commit acd869f4d6

View File

@ -14,7 +14,10 @@ export {
export { parse as babelParse } from '@babel/parser'
import MagicString from 'magic-string'
export { MagicString }
export { walk } from 'estree-walker'
// technically internal but we want it in @vue/repl, cast it as any to avoid
// relying on estree types
import { walk as _walk } from 'estree-walker'
export const walk = _walk as any
export {
generateCodeFrame,
walkIdentifiers,