Skip to content

Commit 3bbeaec

Browse files
committed
Always include client sourcemaps
1 parent 0e62b1b commit 3bbeaec

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: crates/next-core/src/next_config.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1503,12 +1503,11 @@ impl NextConfig {
15031503
}
15041504

15051505
#[turbo_tasks::function]
1506-
pub async fn client_source_maps(&self, mode: Vc<NextMode>) -> Result<Vc<bool>> {
1507-
let source_maps = self.experimental.turbopack_source_maps;
1508-
Ok(Vc::cell(source_maps.unwrap_or(match &*mode.await? {
1509-
NextMode::Build => self.production_browser_source_maps,
1510-
NextMode::Development => true,
1511-
})))
1506+
pub async fn client_source_maps(&self, _mode: Vc<NextMode>) -> Result<Vc<bool>> {
1507+
// Temporarily always enable client source maps as tests regress.
1508+
// TODO: Respect both `self.experimental.turbopack_source_maps` and
1509+
// `self.production_browser_source_maps`
1510+
Ok(Vc::cell(true))
15121511
}
15131512

15141513
#[turbo_tasks::function]

0 commit comments

Comments
 (0)