rsnext/packages
Shu Ding ba252d8765
Simplify module context invalidation (#51905)
It _might_ be an overhead to send over a large amount of data over
`postMessage` just for diff. HMR and module compilation is way less
frequent than evaluation in the sandbox, so maybe we should always
invalidate the cache eagerly without any comparison and defer the
workload to `evaluateInContext`.

Some observations:

<img width="662"
src="https://github.com/vercel/next.js/assets/3676859/12136002-8857-4e10-ba9a-bf420d098dc8">

<img width="662" alt="CleanShot 2023-06-28 at 08 26 23@2x"
src="https://github.com/vercel/next.js/assets/3676859/db054948-a0ea-4d98-bf4f-aa125e0eb1b5">

![CleanShot 2023-06-28 at 08 02
24@2x](https://github.com/vercel/next.js/assets/3676859/b674beb1-d53c-4a1d-a9bf-ca3672e089c8)
2023-06-28 11:00:39 +02:00
..
create-next-app v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
eslint-config-next v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
eslint-plugin-next v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
font Add retries and clear message to font fetching (#51890) 2023-06-27 23:57:06 +00:00
next Simplify module context invalidation (#51905) 2023-06-28 11:00:39 +02:00
next-bundle-analyzer v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-codemod v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-env v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-mdx v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-plugin-storybook v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-polyfill-module v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-polyfill-nomodule v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
next-swc v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
react-dev-overlay v13.4.8-canary.7 2023-06-27 23:04:22 +00:00
react-refresh-utils v13.4.8-canary.7 2023-06-27 23:04:22 +00:00