Skip to content

Commit

Permalink
fix(embark/generator): add back environment to EmbarkJS
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and iurimatias committed Apr 17, 2019
1 parent 579328a commit 1ae0ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/embark/src/lib/modules/code_generator/index.js
Expand Up @@ -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();
});
Expand Down

0 comments on commit 1ae0ab6

Please sign in to comment.