]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler-sfc): avoid relying on estree type in generated dts
authorEvan You <yyx990803@gmail.com>
Thu, 23 Sep 2021 04:13:54 +0000 (00:13 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 23 Sep 2021 04:13:54 +0000 (00:13 -0400)
packages/compiler-sfc/src/index.ts

index bce09a14bf624d1cc08c42db9e250bb2afab6f1c..1c4bb14ee6f33fdfcf447bd452d9d1486d979be2 100644 (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,