From 96cd924e440984a37e4759673f3c16921b69affe Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 28 Sep 2022 11:05:07 +0800 Subject: [PATCH] fix(compat): list cjs dependencies for compat build Previously the cjs build implicitly relies on hoisted versions of the deps, causing it to resolve to newer versions of estree-walker when present. fix #6602 --- packages/vue-compat/package.json | 5 +++++ pnpm-lock.yaml | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/vue-compat/package.json b/packages/vue-compat/package.json index 2f126f8ecf6..098af48af08 100644 --- a/packages/vue-compat/package.json +++ b/packages/vue-compat/package.json @@ -37,6 +37,11 @@ "url": "https://github.com/vuejs/core/issues" }, "homepage": "https://github.com/vuejs/core/tree/main/packages/vue-compat#readme", + "dependencies": { + "@babel/parser": "^7.16.4", + "estree-walker": "^2.0.2", + "source-map": "^0.6.1" + }, "peerDependencies": { "vue": "3.2.39" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 90bc778d991..f1452cdf342 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -285,7 +285,14 @@ importers: '@vue/shared': link:../shared packages/vue-compat: - specifiers: {} + specifiers: + '@babel/parser': ^7.16.4 + estree-walker: ^2.0.2 + source-map: ^0.6.1 + dependencies: + '@babel/parser': 7.16.4 + estree-walker: 2.0.2 + source-map: 0.6.1 packages: @@ -6590,7 +6597,7 @@ packages: dev: true /source-map/0.5.7: - resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=} + resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} engines: {node: '>=0.10.0'} dev: true