mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
import EmbarkJS from npm pkg, re-export, make it globally accessible
This commit is contained in:
parent
cbdc86bf11
commit
0c4438941d
@ -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…
x
Reference in New Issue
Block a user