Skip to content

Commit d83ad01

Browse files
committed
fix(core/utils): shortcut embarkConfig.plugins in case it doesn't exist
1 parent ec99cf6 commit d83ad01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/utils/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export function warnIfPackageNotDefinedLocally(packageName, warnFunc, embarkConf
328328
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");
329329
}
330330

331-
if (!embarkConfig.plugins[packageName]) {
331+
if (!embarkConfig.plugins || !embarkConfig.plugins[packageName]) {
332332
return warnFunc(
333333
__("== 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)
334334
);

0 commit comments

Comments
 (0)