提交 c0b72c16 编写于 作者: J Joao Moreno

fix bootstrap

上级 ede6fc0e
...@@ -33,13 +33,10 @@ if (nlsConfig.pseudo) { ...@@ -33,13 +33,10 @@ if (nlsConfig.pseudo) {
}); });
} }
var bootstrap = exports.bootstrap = function (entrypoint) { exports.bootstrap = function (entrypoint) {
loader([entrypoint], function () { }, function (err) { console.error(err); }); if (!entrypoint) {
}; return;
if (require.main === module) {
var entrypoint = process.env['AMD_ENTRYPOINT'];
if (entrypoint) {
bootstrap(entrypoint);
} }
}
\ No newline at end of file loader([entrypoint], function () { }, function (err) { console.error(err); });
};
\ No newline at end of file
...@@ -107,4 +107,4 @@ process.on('uncaughtException', function (err) { ...@@ -107,4 +107,4 @@ process.on('uncaughtException', function (err) {
} }
}); });
require('./bootstrap-amd'); require('./bootstrap-amd').bootstrap(process.env['AMD_ENTRYPOINT']);
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册