-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turbopack: EcmascriptChunkItemContent
: add react refresh parameter based on module
#8133
Conversation
…based on module Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
…ameter based on module
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
✅ This change can build |
…ameter based on module
Depends on vercel/turborepo#8133. See that PR for rationale.
…ameter based on module
…ameter based on module
2bd2306
to
156df27
Compare
…ameter based on module
…ameter based on module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, it seems like the removal of EcmascriptChunkingContext
simplifies things quite a bit, especially in the cases that needed downcasting.
Depends on vercel/turborepo#8133. See that PR for rationale.
Depends on vercel/turborepo#8133. See that PR for rationale.
@@ -162,7 +162,7 @@ async fn into_ecmascript_module_asset( | |||
analyze_types: false, | |||
}), | |||
this.transforms, | |||
Value::new(Default::default()), | |||
EcmascriptOptions::default().cell(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does kinda need refresh
…based on module (vercel#8133) Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
…based on module (vercel/turborepo#8133) Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
### Description Seems like this was missed in vercel/turborepo#8133 ### Testing Instructions Closes PACK-3115
…based on module (vercel/turborepo#8133) Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
### Description Seems like this was missed in vercel/turborepo#8133 ### Testing Instructions Closes PACK-3115
…based on module (vercel/turborepo#8133) Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
### Description Seems like this was missed in vercel/turborepo#8133 ### Testing Instructions Closes PACK-3115
…based on module (vercel/turborepo#8133) Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the `EcmascriptOptions` for the module. This ensures that we only make react refresh values available to user code transformed with it. This also: - Removes `EcmascriptChunkingContext`, as it’s no longer necessary - Makes `EcmascriptOptions` a Vc in many more cases Test Plan: Integration tests
### Description Seems like this was missed in vercel/turborepo#8133 ### Testing Instructions Closes PACK-3115
Depends on vercel/turborepo#8133. See that PR for rationale.
Depends on vercel/turborepo#8133. See that PR for rationale.
Depends on vercel/turborepo#8133. See that PR for rationale.
Rather than reading it from the chunking context, which applies to all modules for a given chunking target, read it from the
EcmascriptOptions
for the module. This ensures that we only make react refresh values available to user code transformed with it.This also:
EcmascriptChunkingContext
, as it’s no longer necessaryEcmascriptOptions
a Vc in many more casesTest Plan: Integration tests