more logs
This commit is contained in:
parent
e80b595fc3
commit
9117114585
|
|
@ -70,6 +70,8 @@ export async function loadPlugins(pluginNames, options, context, queue) {
|
|||
let p = new plugin(options, context, queue);
|
||||
plugins.push(p);
|
||||
} catch (error_) {
|
||||
console.log('In plugins dir:' + name);
|
||||
console.log(error_);
|
||||
try {
|
||||
let { default: plugin } = await import(
|
||||
path.resolve(process.cwd(), name)
|
||||
|
|
@ -84,6 +86,7 @@ export async function loadPlugins(pluginNames, options, context, queue) {
|
|||
} catch (error) {
|
||||
// try global
|
||||
console.log('Import global silent plugin:' + name);
|
||||
console.log(error);
|
||||
let { default: plugin } = await importGlobalSilent(name);
|
||||
if (plugin) {
|
||||
let p = new plugin(options, context, queue);
|
||||
|
|
|
|||
Loading…
Reference in New Issue