diff --git a/.changeset/soft-wombats-shop.md b/.changeset/soft-wombats-shop.md new file mode 100644 index 000000000..a9e3a520e --- /dev/null +++ b/.changeset/soft-wombats-shop.md @@ -0,0 +1,5 @@ +--- +'@vanilla-extract/integration': minor +--- + +Exposed esbuild log options for better control of build reporting diff --git a/packages/integration/src/compile.ts b/packages/integration/src/compile.ts index 1b9a3644e..79fcb1edc 100644 --- a/packages/integration/src/compile.ts +++ b/packages/integration/src/compile.ts @@ -49,7 +49,15 @@ export interface CompileOptions { cwd?: string; esbuildOptions?: Pick< EsbuildOptions, - 'plugins' | 'external' | 'define' | 'loader' | 'tsconfig' | 'conditions' + | 'plugins' + | 'external' + | 'define' + | 'loader' + | 'tsconfig' + | 'conditions' + | 'logLevel' + | 'logLimit' + | 'logOverride' >; } export async function compile({ @@ -74,6 +82,9 @@ export async function compile({ define: esbuildOptions?.define, tsconfig: esbuildOptions?.tsconfig, conditions: esbuildOptions?.conditions, + logLevel: esbuildOptions?.logLevel, + logLimit: esbuildOptions?.logLimit, + logOverride: esbuildOptions?.logOverride, }); const { outputFiles, metafile } = result;