From acd869f4d69b9ba43e826f62b2eeaed0b67fa1fc Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 23 Sep 2021 00:13:54 -0400 Subject: [PATCH] chore(compiler-sfc): avoid relying on estree type in generated dts --- packages/compiler-sfc/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/index.ts b/packages/compiler-sfc/src/index.ts index bce09a14b..1c4bb14ee 100644 --- a/packages/compiler-sfc/src/index.ts +++ b/packages/compiler-sfc/src/index.ts @@ -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,