-
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
avoid bundling and execution of modules just of watching #4053
avoid bundling and execution of modules just of watching #4053
Conversation
use completions to signal additional invalidations for evaluation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
9 Ignored Deployments
|
🟢 CI successful 🟢Thanks |
vec![ | ||
JsonValueVc::cell(request), | ||
JsonValueVc::cell(dir.to_string_lossy().into()), | ||
], | ||
routes_changed, | ||
CompletionsVc::all(vec![next_config_changed, routes_changed]), |
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.
Unrelated to the current PR, but it feels like ::all
should be a static method on CompletionVc
instead of CompletionsVc
.
#[turbo_tasks::function] | ||
pub async fn all(self) -> anyhow::Result<CompletionVc> { | ||
pub fn all(completions: Vec<CompletionVc>) -> CompletionVc { |
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.
Unfortunate that we can't use [CompletionVc; N]
here. This seems like a very easy mistake to make.
/// Returns a completion that changes when the content of the given asset | ||
/// changes. | ||
#[turbo_tasks::function] | ||
pub async fn content_changed(asset: AssetVc) -> Result<CompletionVc> { |
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.
I wouldn't mark this as pub
until we have another use for it.
Benchmark for 444b11eClick to view benchmark
|
# New Features * vercel/turborepo#4011 # Performance Improvements * vercel/turborepo#3955 * vercel/turborepo#4018 # Bug Fixes * vercel/turborepo#4037 * vercel/turborepo#4028 # Other * vercel/turborepo#3974 * vercel/turborepo#4015 * vercel/turborepo#3999 * vercel/turborepo#4026 * vercel/turborepo#4053 * vercel/turborepo#3891 Co-authored-by: JJ Kasper <[email protected]>
…orepo#4053) ### Description * use completions to signal additional invalidations for evaluation * avoid adding these modules as runtime entries, since that will unnecessarily code generate, bundle and execute these modules * gets rid of the watch_files_hack ### Testing Instructions * change postcss.config, next.config.js, etc. -> changes will be reflected by the app and process restarts
…orepo#4053) ### Description * use completions to signal additional invalidations for evaluation * avoid adding these modules as runtime entries, since that will unnecessarily code generate, bundle and execute these modules * gets rid of the watch_files_hack ### Testing Instructions * change postcss.config, next.config.js, etc. -> changes will be reflected by the app and process restarts
…orepo#4053) ### Description * use completions to signal additional invalidations for evaluation * avoid adding these modules as runtime entries, since that will unnecessarily code generate, bundle and execute these modules * gets rid of the watch_files_hack ### Testing Instructions * change postcss.config, next.config.js, etc. -> changes will be reflected by the app and process restarts
…orepo#4053) ### Description * use completions to signal additional invalidations for evaluation * avoid adding these modules as runtime entries, since that will unnecessarily code generate, bundle and execute these modules * gets rid of the watch_files_hack ### Testing Instructions * change postcss.config, next.config.js, etc. -> changes will be reflected by the app and process restarts
…orepo#4053) ### Description * use completions to signal additional invalidations for evaluation * avoid adding these modules as runtime entries, since that will unnecessarily code generate, bundle and execute these modules * gets rid of the watch_files_hack ### Testing Instructions * change postcss.config, next.config.js, etc. -> changes will be reflected by the app and process restarts
Description
Testing Instructions