From bff785bc7e71259c1ad706a975e23c80acafa717 Mon Sep 17 00:00:00 2001 From: Fy <1114550440@qq.com> Date: Wed, 17 Jul 2024 15:42:33 +0800 Subject: [PATCH] refactor: make @swc/helpers an optional peer (#207) --- .changeset/lazy-rockets-eat.md | 7 +++++++ package.json | 5 +++++ pnpm-lock.yaml | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/lazy-rockets-eat.md diff --git a/.changeset/lazy-rockets-eat.md b/.changeset/lazy-rockets-eat.md new file mode 100644 index 0000000..2e973b9 --- /dev/null +++ b/.changeset/lazy-rockets-eat.md @@ -0,0 +1,7 @@ +--- +"@modern-js/swc-plugins": patch +"@modern-js/swc-plugin-import": patch +"@modern-js/swc-react-const-elements-plugin": patch +--- + +refactor: make @swc/helpers an optional peer diff --git a/package.json b/package.json index ba478d3..8cce2b6 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,11 @@ "peerDependencies": { "@swc/helpers": ">=0.5.3" }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + }, "engines": { "node": ">=14.17.6" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2a7420..e3facc6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,7 @@ importers: .: dependencies: '@swc/helpers': - specifier: 0.5.3 + specifier: '>=0.5.3' version: 0.5.3 devDependencies: '@changesets/cli':