rsnext/packages
Gerald Monaco 9ab916ac99
Simplify next-dev-server implementation (#26230)
`next-dev-server` having its own implementations of `renderToHTML` and `renderErrorToHTML` has historically made reasoning about streaming hard, as it adds additional places where status codes are explicitly set and the full HTML is blocked on.

Instead, this PR simplifies things considerably by moving the majority of the custom logic for e.g. hot reloading and on-demand compilation to when we're resolving the page to be loaded, rather than upfront when handling the request. It also cleans up a few other details (e.g. default error page rendering) that managed to creep into the base implementation over time.

One unfortunate side effect is that this makes compilation errors slightly more difficult. Previously, we'd render them directly. Now, we have to rethrow them. But since they've already been logged (by the watch pipeline), we have to make sure they don't get logged again.
2021-06-29 23:02:10 +00:00
..
create-next-app v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
eslint-config-next v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
eslint-plugin-next v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next Simplify next-dev-server implementation (#26230) 2021-06-29 23:02:10 +00:00
next-bundle-analyzer v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-codemod v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-env v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-mdx v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-plugin-storybook v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-polyfill-module v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
next-polyfill-nomodule v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
react-dev-overlay v11.0.2-canary.3 2021-06-28 10:50:14 -05:00
react-refresh-utils v11.0.2-canary.3 2021-06-28 10:50:14 -05:00