Skip to content

Commit 330321c

Browse files
committed
make nft configs slightly more consistent
1 parent 9d3cfe4 commit 330321c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

turbopack/crates/turbopack-tracing/tests/node-file-trace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ use turbopack::{
4040
},
4141
};
4242
use turbopack_core::{
43+
chunk::SourceMapsType,
4344
compile_time_info::CompileTimeInfo,
4445
context::AssetContext,
4546
environment::{Environment, ExecutionEnvironment, NodeJsEnvironment},
@@ -373,10 +374,12 @@ async fn node_file_trace_operation(
373374
enable_typescript_transform: Some(
374375
TypescriptTransformOptions::default().resolved_cell(),
375376
),
377+
// enable_types is required here to ensure .d.ts files are collected.
376378
enable_types: true,
377379
..Default::default()
378380
},
379381
css: CssOptionsContext {
382+
source_maps: SourceMapsType::None,
380383
enable_raw_css: true,
381384
..Default::default()
382385
},

turbopack/crates/turbopack-tracing/tests/unit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use turbopack::{
2121
},
2222
};
2323
use turbopack_core::{
24+
chunk::SourceMapsType,
2425
compile_time_info::CompileTimeInfo,
2526
context::AssetContext,
2627
environment::{Environment, ExecutionEnvironment, NodeJsEnvironment},
@@ -212,6 +213,7 @@ async fn node_file_trace_operation(package_root: RcStr, input: RcStr) -> Result<
212213
..Default::default()
213214
},
214215
css: CssOptionsContext {
216+
source_maps: SourceMapsType::None,
215217
enable_raw_css: true,
216218
..Default::default()
217219
},

0 commit comments

Comments
 (0)