refactor: compatible commonjs loader

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-04-23 18:44:15 +08:00
parent a875a6ca8e
commit 93d7389047
71 changed files with 78 additions and 86 deletions

View File

@ -23,7 +23,7 @@ var global = this;
// 检查类加载器 防止找不到核心文件
loader = checkClassLoader();
// 解压文件到根目录 非调试模式直接从jar解压覆盖
release(root, '(api|core|internal|modules)+/.*', !global.debug);
release(root, '(core|node_modules)+/.*', !global.debug);
load(root + '/core/init.js');
try {
init(root);