From 18cc95b6a990de729a017eda41f6a958d5291aa7 Mon Sep 17 00:00:00 2001 From: OJ Kwon <1210596+kwonoj@users.noreply.github.com> Date: Mon, 17 Apr 2023 07:56:17 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alex Kirszenberg --- .../next-swc/crates/next-core/src/next_client/context.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/next-swc/crates/next-core/src/next_client/context.rs b/packages/next-swc/crates/next-core/src/next_client/context.rs index 30e5fa601589cc..48408f8101968c 100644 --- a/packages/next-swc/crates/next-core/src/next_client/context.rs +++ b/packages/next-swc/crates/next-core/src/next_client/context.rs @@ -228,15 +228,15 @@ 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()), enable_jsx: Some(JsxTransformOptions::default().cell()), ..module_options_context.clone() - }) + } .cell(), ), ],