Skip to content

Commit

Permalink
fix(core/utils): shortcut embarkConfig.plugins in case it doesn't e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
0x-r4bbit committed Apr 10, 2020
1 parent ec99cf6 commit d83ad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export function warnIfPackageNotDefinedLocally(packageName, warnFunc, embarkConf
return warnFunc("== WARNING: it seems " + packageName + " is not defined in your dapp's package.json dependencies; In future versions of embark this package should be a local dependency and configured as a plugin");
}

if (!embarkConfig.plugins[packageName]) {
if (!embarkConfig.plugins || !embarkConfig.plugins[packageName]) {
return warnFunc(
__("== WARNING: it seems %s is not defined in your Dapp's embark.json plugins;\nIn future versions of Embark, this package should be a local dependency and configured as a plugin", packageName)
);
Expand Down

0 comments on commit d83ad01

Please sign in to comment.