This commit is contained in:
2026-04-12 01:02:14 +08:00
parent 509487f155
commit 9b053e302b
14085 changed files with 2680009 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
// TODO: Remove use of `any` type.
import './webpack';
import { initialize, version, router, emitter } from './';
import initHMR from './dev/hot-middleware-client';
import { pageBootstrap } from './page-bootstrap';
window.next = {
version,
// router is initialized later so it has to be live-binded
get router () {
return router;
},
emitter
};
const devClient = initHMR();
initialize({
devClient
}).then((param)=>{
let { assetPrefix } = param;
return pageBootstrap(assetPrefix);
}).catch((err)=>{
console.error('Error was not caught', err);
});
//# sourceMappingURL=next-dev.js.map