Skip to content

Commit e20d4ff

Browse files
committed
WIP: enable by default
1 parent 2553c87 commit e20d4ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/next-core/src/next_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,12 +1754,12 @@ impl NextConfig {
17541754
}
17551755

17561756
#[turbo_tasks::function]
1757-
pub async fn turbopack_remove_unused_imports(&self, _mode: Vc<NextMode>) -> Result<Vc<bool>> {
1757+
pub async fn turbopack_remove_unused_imports(&self, mode: Vc<NextMode>) -> Result<Vc<bool>> {
17581758
Ok(Vc::cell(
17591759
self.experimental
17601760
.turbopack_remove_unused_imports
17611761
// TODO enable by default once stable
1762-
.unwrap_or(false),
1762+
.unwrap_or(matches!(*mode.await?, NextMode::Build)),
17631763
))
17641764
}
17651765

0 commit comments

Comments
 (0)