mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fixes
This commit is contained in:
18 files changed
+90
-72
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user