rsnext/packages
Jimmy Lai 30da48fcd2
server: enable minification by default (#54960)
This PR will enable minifying the *server* part of the user code by default when running `next build`.

## Explanation

Next.js compiles two versions of your code: the client version for the app that runs in the browser, and the server for the code that will run on the server. Whilst the client code has always been minified and optimised, we haven't done so historically for the server side.

## How does this impact me?

There are several consequences to this change:
- minified code makes error stacks less readable. To fix that, you can use source maps, which you can enable with `experimental.serverSourceMaps`. This is not enabled by default as this is an expensive operation.
- however the server code will be optimised for size so as a result, cold boots should improve

## opting out

you can opt out via specifying `experimental.serverMinification: false` in `next.config.js`
2023-09-06 10:24:01 +00:00
..
create-next-app v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
eslint-config-next v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
eslint-plugin-next v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
font v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next server: enable minification by default (#54960) 2023-09-06 10:24:01 +00:00
next-bundle-analyzer v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-codemod v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-env v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-mdx v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-plugin-storybook v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-polyfill-module v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-polyfill-nomodule v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
next-swc v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
react-dev-overlay v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
react-refresh-utils v13.4.20-canary.18 2023-09-05 22:49:40 +00:00
third-parties v13.4.20-canary.18 2023-09-05 22:49:40 +00:00