We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6fb08 commit 72c84aaCopy full SHA for 72c84aa
packages/core/src/types/plugin.ts
@@ -261,7 +261,8 @@ export type RsbuildPlugin = {
261
// Rsbuild core without throwing type mismatches. In most cases, Rsbuild core
262
// only adds new methods or properties to the API object, which means that lower
263
// version plugins will usually work fine.
264
-type LooseRsbuildPlugin = Omit<RsbuildPlugin, 'setup'> & {
+type LooseRsbuildPlugin = Omit<RsbuildPlugin, 'setup' | 'apply'> & {
265
+ apply?: any;
266
setup: (api: any) => MaybePromise<void>;
267
};
268
0 commit comments