Skip to content

Commit 7801bc8

Browse files
authored
fix(rspack-plugin): mark @rspack/core as optional peer (#1077)
1 parent 2a23ce6 commit 7801bc8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/rspack-plugin/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
"peerDependencies": {
3838
"@rspack/core": "*"
3939
},
40+
"peerDependenciesMeta": {
41+
"@rspack/core": {
42+
"optional": true
43+
}
44+
},
4045
"publishConfig": {
4146
"access": "public",
4247
"provenance": true,

packages/rspack-plugin/src/multiple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { RsdoctorMultiplePluginOptions } from '@rsdoctor/core';
44

55
import { RsdoctorRspackPlugin } from './plugin';
66
import { normalizeUserConfig } from '@rsdoctor/core/plugins';
7-
import { Compiler } from '@rspack/core';
7+
import type { Compiler } from '@rspack/core';
88

99
let globalController: RsdoctorSDKController | undefined;
1010

0 commit comments

Comments
 (0)