fdabeb7098
- Use SWC to compile Next.js core server files - Ensure only @babel/runtime/helpers/interopRequireDefault helper is used Just an initial comparison to compare size difference of this change. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes
14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
import { initNext, version, router, emitter, render, renderError } from './'
|
|
|
|
window.next = {
|
|
version,
|
|
// router is initialized later so it has to be live-binded
|
|
get router() {
|
|
return router
|
|
},
|
|
emitter,
|
|
render,
|
|
renderError,
|
|
}
|
|
|
|
initNext().catch(console.error)
|