Skip to content

Commit e63a3b8

Browse files
committed
feat: adjust plugin code
1 parent 6b10d8e commit e63a3b8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/runtime/core/src/garfish.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import {
44
warn,
55
error,
66
assert,
7-
hasOwn,
87
deepMerge,
98
transformUrl,
109
isPlainObject,
11-
__GARFISH_FLAG__,
1210
getRenderNode,
11+
__GARFISH_FLAG__,
1312
} from '@garfish/utils';
1413
import { Hooks } from './hooks';
1514
import { App } from './module/app';
@@ -43,7 +42,7 @@ export class Garfish implements interfaces.Garfish {
4342
this.setOptions(options);
4443
// register plugins
4544
options?.plugins.forEach((pluginCb) => {
46-
this.usePlugin(this.hooks, pluginCb, this);
45+
this.usePlugin(this.hooks, pluginCb);
4746
});
4847
this.hooks.lifecycle.initialize.call(this.options);
4948
}
@@ -54,7 +53,7 @@ export class Garfish implements interfaces.Garfish {
5453
if (!options.disablePreloadApp) defaultPlugin.push(GarfishPreloadPlugin());
5554

5655
defaultPlugin.forEach((pluginCb) => {
57-
this.usePlugin(this.hooks, pluginCb, this);
56+
this.usePlugin(this.hooks, pluginCb);
5857
});
5958
}
6059

0 commit comments

Comments
 (0)