mirror of https://github.com/embarklabs/embark.git
fix(embark/generator): add back environment to EmbarkJS
This commit is contained in:
parent
579328a9f4
commit
1ae0ab6b1f
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue