Skip to content

Commit

Permalink
update build of 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcco committed Jan 16, 2019
1 parent 6b5de86 commit b2b8bef
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/lib/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ if (param === PATH) {
}
else if (param === VERSION) {
// tslint:disable-next-line
console.log('0.0.7');
console.log('0.0.8');
}
17 changes: 15 additions & 2 deletions app/lib/app/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,23 @@ function load(scriptPath) {
if (preloadmodules_1.default[name]) {
return preloadmodules_1.default[name];
}
return userModule.require(name);
try {
return userModule.require(name);
}
catch (e) {
let loadScript = path_1.default.join(path_1.default.dirname(scriptPath), name);
if (fs_1.default.existsSync(loadScript) && fs_1.default.statSync(loadScript).isDirectory()) {
loadScript = path_1.default.join(loadScript, 'index.js');
}
else if (!fs_1.default.existsSync(loadScript)) {
loadScript = `${loadScript}.js`;
}
return load(loadScript);
}
},
__filename: userModule.filename,
__dirname: path_1.default.dirname(scriptPath)
__dirname: path_1.default.dirname(scriptPath),
process,
});
vm_1.default.runInContext(moduleCode, sanbox, { filename: userModule.filename });
return userModule.exports;
Expand Down
2 changes: 1 addition & 1 deletion app/out/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charSet="utf-8" class="next-head"/><link rel="preload" href="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/404.js" as="script"/><link rel="preload" href="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/_app.js" as="script"/><link rel="preload" href="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/_error.js" as="script"/><link rel="preload" href="/_next/static/runtime/webpack-42652fa8b82c329c0559.js" as="script"/><link rel="preload" href="/_next/static/chunks/commons.b601180cd8749f8bffd0.js" as="script"/><link rel="preload" href="/_next/static/runtime/main-b42a17479e8bf651c9d2.js" as="script"/></head><body><div id="__next"><div data-reactroot="">404</div></div><script>__NEXT_DATA__ = {"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"m0CT40f8ewSSHXMQV39GC","nextExport":true};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])}</script><script async="" id="__NEXT_PAGE__/404" src="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/404.js"></script><script async="" id="__NEXT_PAGE__/_app" src="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/_app.js"></script><script async="" id="__NEXT_PAGE__/_error" src="/_next/static/m0CT40f8ewSSHXMQV39GC/pages/_error.js"></script><script src="/_next/static/runtime/webpack-42652fa8b82c329c0559.js" async=""></script><script src="/_next/static/chunks/commons.b601180cd8749f8bffd0.js" async=""></script><script src="/_next/static/runtime/main-b42a17479e8bf651c9d2.js" async=""></script></body></html>
<!DOCTYPE html><html><head><meta charSet="utf-8" class="next-head"/><link rel="preload" href="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/404.js" as="script"/><link rel="preload" href="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/_app.js" as="script"/><link rel="preload" href="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/_error.js" as="script"/><link rel="preload" href="/_next/static/runtime/webpack-42652fa8b82c329c0559.js" as="script"/><link rel="preload" href="/_next/static/chunks/commons.1c1b5ebd55cbcad2529a.js" as="script"/><link rel="preload" href="/_next/static/runtime/main-94dad8183cac85e3af97.js" as="script"/></head><body><div id="__next"><div data-reactroot="">404</div></div><script>__NEXT_DATA__ = {"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"m8mLe3bgnbJBQe82yuoK9","nextExport":true};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])}</script><script async="" id="__NEXT_PAGE__/404" src="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/404.js"></script><script async="" id="__NEXT_PAGE__/_app" src="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/_app.js"></script><script async="" id="__NEXT_PAGE__/_error" src="/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/_error.js"></script><script src="/_next/static/runtime/webpack-42652fa8b82c329c0559.js" async=""></script><script src="/_next/static/chunks/commons.1c1b5ebd55cbcad2529a.js" async=""></script><script src="/_next/static/runtime/main-94dad8183cac85e3af97.js" async=""></script></body></html>

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions app/out/_next/static/m0CT40f8ewSSHXMQV39GC/pages/index.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions app/out/_next/static/m8mLe3bgnbJBQe82yuoK9/pages/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit b2b8bef

Please sign in to comment.