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 17, 2023
1 parent 2fa8b23 commit 5e790fd
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
Expand Up @@ -212,14 +212,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 5e790fd

Please sign in to comment.