import EmbarkJS from npm pkg, re-export, make it globally accessible

This commit is contained in:
Michael Bradley, Jr 2018-07-16 04:05:49 -05:00
parent be38eb6a89
commit dc50ea864e
1 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,9 @@ class CodeGenerator {
buildEmbarkJS(cb) {
const self = this;
let embarkjsCode = fs.readFileSync(fs.embarkPath('js/embark.js')).toString();
let embarkjsCode = "import EmbarkJS from 'embarkjs';";
embarkjsCode += "\nexport default EmbarkJS;";
embarkjsCode += "\nwindow.EmbarkJS = EmbarkJS";
let code = "";
async.waterfall([