rsnext/packages/next
Tobias Koppers 666ce7bd8b
Chunking Refactor Step 1 (#56467)
### What?

This change moves a few methods around.

Module::as_chunk is moved to ChunkItem::as_chunk as temporary intermediate state.
EcmascriptPlaceable::as_chunk_item is moved to ChunkableModule::as_chunk_item. This generalizes the concept of converting a Module into a ChunkItem


### Why?

This is the first step of refactoring the chunking. In the end we want to avoid creating chunks from modules directly, but enforce everything going through the ChunkingContext to be chunked. This allows us to replace the existing chunking algorithm with a much more efficient one that avoid duplication between chunks in first place and doesn't require a post-chunking optimization.

### How?

see https://github.com/vercel/turbo/pull/6104

Closes WEB-1715

Co-authored-by: Justin Ridgewell <112982+jridgewell@users.noreply.github.com>
2023-10-05 20:05:05 +00:00
..
compat
experimental/testmode Concept: test mode for Playwright and similar integration tools (#52520) 2023-08-14 18:45:50 +00:00
font
image-types Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
legacy
navigation-types/compat Update useParams typing to assume a given shape (#55126) 2023-09-14 20:20:42 +00:00
src Dev Service (#56442) 2023-10-05 17:45:00 +00:00
types refactor: rewrite config schema in zod (#56383) 2023-10-05 15:46:53 +00:00
amp.d.ts
amp.js
app.d.ts
app.js
babel.d.ts
babel.js
cache.d.ts Update cache methods for app dir (#49165) 2023-05-03 13:21:58 -07:00
cache.js Update cache methods for app dir (#49165) 2023-05-03 13:21:58 -07:00
client.d.ts
client.js
config.d.ts server: bundle vendored react (#55362) 2023-09-15 19:49:39 +00:00
config.js server: bundle vendored react (#55362) 2023-09-15 19:49:39 +00:00
constants.d.ts
constants.js
document.d.ts
document.js
dynamic.d.ts
dynamic.js
error.d.ts
error.js
head.d.ts
head.js
headers.d.ts
headers.js
image.d.ts Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
image.js Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
index.d.ts perf: replace zod with superstruct (#56083) 2023-09-28 11:05:36 +02:00
jest.d.ts
jest.js
license.md
link.d.ts
link.js
navigation.d.ts
navigation.js
package.json Chunking Refactor Step 1 (#56467) 2023-10-05 20:05:05 +00:00
README.md
router.d.ts
router.js
script.d.ts
script.js
server.d.ts Update revalidate handling for app (#49062) 2023-05-02 08:19:02 -07:00
server.js Update revalidate handling for app (#49062) 2023-05-02 08:19:02 -07:00
taskfile-ncc.js
taskfile-swc.js Update swc_core to v0.83.12 (#55216) 2023-09-15 17:41:05 +02:00
taskfile-watch.js
taskfile-webpack.js server: re-land bundled runtimes (#55139) 2023-09-08 16:05:29 +00:00
taskfile.js refactor: rewrite config schema in zod (#56383) 2023-10-05 15:46:53 +00:00
tsconfig.json Concept: test mode for Playwright and similar integration tools (#52520) 2023-08-14 18:45:50 +00:00
web-vitals.d.ts
web-vitals.js
webpack.config.js Separate RSC and SSR jsx-runtime modules (#56438) 2023-10-04 20:29:10 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Authors

Security

If you believe you have found a security vulnerability in Next.js, we encourage you to responsibly disclose this and not open a public issue. We will investigate all legitimate reports. Email security@vercel.com to disclose any security vulnerabilities.

https://vercel.com/security