securityos/node_modules/next/dist/esm/client/next-dev.js

25 lines
667 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
// TODO: Remove use of `any` type.
import "./webpack";
import { initialize, version, router, emitter } from "./";
import initHMR from "./dev/hot-middleware-client";
import { pageBootrap } from "./page-bootstrap";
import "./setup-hydration-warning";
window.next = {
version,
// router is initialized later so it has to be live-binded
get router () {
return router;
},
emitter
};
const devClient = initHMR("webpack");
initialize({
devClient
}).then((param)=>{
let { assetPrefix } = param;
return pageBootrap(assetPrefix);
}).catch((err)=>{
console.error("Error was not caught", err);
});
//# sourceMappingURL=next-dev.js.map