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

fix bootstrap

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