fix(embark/generator): add back environment to EmbarkJS

This commit is contained in:
Jonathan Rainville 2019-04-17 16:13:39 -04:00 committed by Iuri Matias
parent 579328a9f4
commit 1ae0ab6b1f
1 changed files with 1 additions and 0 deletions

View File

@ -338,6 +338,7 @@ class CodeGenerator {
return next(err);
}
embarkjsCode += `\nconst EmbarkJS = require("${symlinkDest}").default || require("${symlinkDest}");`;
embarkjsCode += `\nEmbarkJS.environment = '${self.env}';`;
embarkjsCode += "\nglobal.EmbarkJS = EmbarkJS;";
next();
});