Commit 1e0b74f6 authored by Luke Sandberg's avatar Luke Sandberg

fix some lint issues

parent 717175bf
...@@ -502,9 +502,6 @@ impl PagesProject { ...@@ -502,9 +502,6 @@ impl PagesProject {
async fn ssr_resolve_options_context(self: Vc<Self>) -> Result<Vc<ResolveOptionsContext>> { async fn ssr_resolve_options_context(self: Vc<Self>) -> Result<Vc<ResolveOptionsContext>> {
Ok(get_server_resolve_options_context( Ok(get_server_resolve_options_context(
self.project().project_path().owned().await?, self.project().project_path().owned().await?,
// NOTE(alexkirsz) This could be `PagesData` for the data endpoint, but it doesn't
// matter (for now at least) because `get_server_resolve_options_context` doesn't
// differentiate between the two.
ServerContextType::Pages { ServerContextType::Pages {
pages_dir: self.pages_dir().owned().await?, pages_dir: self.pages_dir().owned().await?,
}, },
...@@ -519,9 +516,6 @@ impl PagesProject { ...@@ -519,9 +516,6 @@ impl PagesProject {
async fn edge_ssr_resolve_options_context(self: Vc<Self>) -> Result<Vc<ResolveOptionsContext>> { async fn edge_ssr_resolve_options_context(self: Vc<Self>) -> Result<Vc<ResolveOptionsContext>> {
Ok(get_edge_resolve_options_context( Ok(get_edge_resolve_options_context(
self.project().project_path().owned().await?, self.project().project_path().owned().await?,
// NOTE(alexkirsz) This could be `PagesData` for the data endpoint, but it doesn't
// matter (for now at least) because `get_server_resolve_options_context` doesn't
// differentiate between the two.
ServerContextType::Pages { ServerContextType::Pages {
pages_dir: self.pages_dir().owned().await?, pages_dir: self.pages_dir().owned().await?,
}, },
......
...@@ -61,7 +61,8 @@ use turbopack_core::{ ...@@ -61,7 +61,8 @@ use turbopack_core::{
file_source::FileSource, file_source::FileSource,
ident::Layer, ident::Layer,
issue::{ issue::{
CollectibleIssuesExt, Issue, IssueExt, IssueFilter, IssueSeverity, IssueStage, StyledString, CollectibleIssuesExt, Issue, IssueExt, IssueFilter, IssueSeverity, IssueStage,
OptionStyledString, StyledString,
}, },
module::Module, module::Module,
module_graph::{ module_graph::{
...@@ -1530,9 +1531,8 @@ impl Project { ...@@ -1530,9 +1531,8 @@ impl Project {
// In development watch mode, keep issues so individual routes can report them. // In development watch mode, keep issues so individual routes can report them.
// In non-watch dev mode (e.g. next build --debug-prerender) or production, drop issues // In non-watch dev mode (e.g. next build --debug-prerender) or production, drop issues
// so every route doesn't redundantly re-report all shared graph issues. // so every route doesn't redundantly re-report all shared graph issues.
let module_graphs_vc = if !self.next_mode().await?.is_production() let module_graphs_vc =
&& *self.is_watch_enabled().await? if !self.next_mode().await?.is_production() && *self.is_watch_enabled().await? {
{
module_graphs_op.connect() module_graphs_op.connect()
} else { } else {
let vc = module_graphs_op.resolve().strongly_consistent().await?; let vc = module_graphs_op.resolve().strongly_consistent().await?;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment