From 7bd305a5ef963c18e1fa6596c5f42e13efd8de3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Nov 2022 18:48:26 +0900 Subject: [PATCH] Enable color --- packages/next-swc/crates/napi/src/transform.rs | 2 +- packages/next-swc/crates/wasm/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next-swc/crates/napi/src/transform.rs b/packages/next-swc/crates/napi/src/transform.rs index f1104fb5f20e0..7fda3d21a8b4c 100644 --- a/packages/next-swc/crates/napi/src/transform.rs +++ b/packages/next-swc/crates/napi/src/transform.rs @@ -73,7 +73,7 @@ impl Task for TransformTask { try_with_handler( self.c.cm.clone(), swc_core::base::HandlerOpts { - color: ColorConfig::Never, + color: ColorConfig::Always, skip_filename: true, }, |handler| { diff --git a/packages/next-swc/crates/wasm/src/lib.rs b/packages/next-swc/crates/wasm/src/lib.rs index 1b16b6a79bd1f..092b1c2945d75 100644 --- a/packages/next-swc/crates/wasm/src/lib.rs +++ b/packages/next-swc/crates/wasm/src/lib.rs @@ -69,7 +69,7 @@ pub fn transform_sync(s: JsValue, opts: JsValue) -> Result { let out = try_with_handler( c.cm.clone(), swc_core::base::HandlerOpts { - color: ColorConfig::Never, + color: ColorConfig::Always, skip_filename: false, }, |handler| {