From: Evan You Date: Thu, 23 Sep 2021 04:13:54 +0000 (-0400) Subject: chore(compiler-sfc): avoid relying on estree type in generated dts X-Git-Tag: v3.2.15~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acd869f4d69b9ba43e826f62b2eeaed0b67fa1fc;p=thirdparty%2Fvuejs%2Fcore.git chore(compiler-sfc): avoid relying on estree type in generated dts --- diff --git a/packages/compiler-sfc/src/index.ts b/packages/compiler-sfc/src/index.ts index bce09a14bf..1c4bb14ee6 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,