import EmbarkJS from npm pkg, re-export, make it globally accessible
This commit is contained in:
parent
be38eb6a89
commit
dc50ea864e
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue