bug fixes

This commit is contained in:
undefined committed 2025-03-28 09:41:45 +08:00
1 parent 56311e1209
commit ec23e81f8e
18 files changed
+90 -72

No files matched your search

+4 -1
View File
@@ -110,9 +110,12 @@ export class Loader extends Service {
if (!plugin) return;
const config = await this.resolveConfig(plugin, configScope);
let fork = this.state[key];
const displayPath = key.includes('node_modules')
? key.split('node_modules').pop()
: path.relative(process.cwd(), key);
logger.info(
`%s plugin %c${configScope ? ' with scope %c' : ''}`,
fork ? 'reload' : 'apply', key.split('node_modules').pop(), configScope,
fork ? 'reload' : 'apply', displayPath, configScope,
);
if (fork) {
fork.update(config);