Skip to content

Commit f172784

Browse files
committed
WIP: enable by default
1 parent a06d386 commit f172784

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
@@ -1748,12 +1748,12 @@ impl NextConfig {
17481748
}
17491749

17501750
#[turbo_tasks::function]
1751-
pub async fn turbopack_remove_unused_imports(&self, _mode: Vc<NextMode>) -> Result<Vc<bool>> {
1751+
pub async fn turbopack_remove_unused_imports(&self, mode: Vc<NextMode>) -> Result<Vc<bool>> {
17521752
Ok(Vc::cell(
17531753
self.experimental
17541754
.turbopack_remove_unused_imports
17551755
// TODO enable by default once stable
1756-
.unwrap_or(false),
1756+
.unwrap_or(matches!(*mode.await?, NextMode::Build)),
17571757
))
17581758
}
17591759

0 commit comments

Comments
 (0)