Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Kirszenberg <alex.kirszenberg@vercel.com>
  • Loading branch information
kwonoj and alexkirsz committed Apr 19, 2023
1 parent e4230f4 commit 1d6f7a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next-swc/crates/next-core/src/next_client/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ pub async fn get_client_module_options_context(
foreign_code_context_condition(next_config).await?,
module_options_context.clone().cell(),
),
// If module is internal assets (i.e overlay, fallback) coming from embed_js fs root
// We will not apply any user defined transforms
// If the module is an internal asset (i.e overlay, fallback) coming from the embedded FS,
// don't apply user defined transforms.
(
ContextCondition::InPath(next_js_fs().root()),
(ModuleOptionsContext {
ModuleOptionsContext {
enable_typescript_transform: Some(TypescriptTransformOptions::default().cell()),
..module_options_context.clone()
})
}
.cell(),
),
],
Expand Down

0 comments on commit 1d6f7a5

Please sign in to comment.