From 52b60290cd0ec72cad2a941f8407af377dbb5cdd Mon Sep 17 00:00:00 2001 From: Ray Knight Date: Thu, 7 Nov 2024 10:35:44 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20expose=20esbuild=20logov?= =?UTF-8?q?erride=20option=20within=20compile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/curly-parents-vanish.md | 2 +- packages/integration/src/compile.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.changeset/curly-parents-vanish.md b/.changeset/curly-parents-vanish.md index a54450deb..e7d2e6b09 100644 --- a/.changeset/curly-parents-vanish.md +++ b/.changeset/curly-parents-vanish.md @@ -2,4 +2,4 @@ '@vanilla-extract/integration': minor --- -Exposed esbuild's logLevel option +Exposed esbuild's logLevel & logOverride options diff --git a/packages/integration/src/compile.ts b/packages/integration/src/compile.ts index 375d8b465..5c5f87560 100644 --- a/packages/integration/src/compile.ts +++ b/packages/integration/src/compile.ts @@ -49,7 +49,7 @@ export interface CompileOptions { cwd?: string; esbuildOptions?: Pick< EsbuildOptions, - 'plugins' | 'external' | 'define' | 'loader' | 'tsconfig' | 'conditions' | 'logLevel' + 'plugins' | 'external' | 'define' | 'loader' | 'tsconfig' | 'conditions' | 'logLevel' | 'logOverride' >; } export async function compile({ @@ -75,6 +75,7 @@ export async function compile({ tsconfig: esbuildOptions?.tsconfig, conditions: esbuildOptions?.conditions, logLevel: esbuildOptions?.logLevel, + logOverride: esbuildOptions?.logOverride, }); const { outputFiles, metafile } = result;