From f916afa2ef910a3ac6336128ffa6e05af1b4e493 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 20 Mar 2024 00:30:56 +0800 Subject: [PATCH] fix: pin @babel/helper-module-imports to ~7.22.15, workaround for babel regression https://github.com/babel/babel/pull/16349 seems to have caused a regression in this plugin, leading to https://github.com/vuejs/core/issues/10549 --- packages/babel-plugin-jsx/package.json | 2 +- packages/babel-plugin-resolve-type/package.json | 2 +- pnpm-lock.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/babel-plugin-jsx/package.json b/packages/babel-plugin-jsx/package.json index 9de68d91..423624f1 100644 --- a/packages/babel-plugin-jsx/package.json +++ b/packages/babel-plugin-jsx/package.json @@ -23,7 +23,7 @@ "dist" ], "dependencies": { - "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-module-imports": "~7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/plugin-syntax-jsx": "^7.23.3", "@babel/template": "^7.23.9", diff --git a/packages/babel-plugin-resolve-type/package.json b/packages/babel-plugin-resolve-type/package.json index d3bc350a..91c43ef5 100644 --- a/packages/babel-plugin-resolve-type/package.json +++ b/packages/babel-plugin-resolve-type/package.json @@ -44,7 +44,7 @@ }, "dependencies": { "@babel/code-frame": "^7.23.5", - "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-module-imports": "~7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/parser": "^7.23.9", "@vue/compiler-sfc": "^3.4.15" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11f2e7d5..1091ed83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,7 +71,7 @@ importers: packages/babel-plugin-jsx: dependencies: '@babel/helper-module-imports': - specifier: ^7.22.15 + specifier: ~7.22.15 version: 7.22.15 '@babel/helper-plugin-utils': specifier: ^7.22.5 @@ -138,7 +138,7 @@ importers: specifier: ^7.23.5 version: 7.23.5 '@babel/helper-module-imports': - specifier: ^7.22.15 + specifier: ~7.22.15 version: 7.22.15 '@babel/helper-plugin-utils': specifier: ^7.22.5