Test load globally installed plugins (#3546)
This commit is contained in:
parent
4afd47fa30
commit
3d58b6628b
|
|
@ -66,9 +66,13 @@ module.exports = {
|
|||
try {
|
||||
plugins.push(require(path.resolve(process.cwd(), name)));
|
||||
} catch (error) {
|
||||
console.error("Couldn't load plugin %s: %s", name, err); // eslint-disable-line no-console
|
||||
// if it fails here, let it fail hard
|
||||
throw error;
|
||||
try {
|
||||
plugins.push(require(name));
|
||||
} catch (error) {
|
||||
console.error("Couldn't load plugin %s: %s", name, err); // eslint-disable-line no-console
|
||||
// if it fails here, let it fail hard
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue