Skip to content

Commit

Permalink
feat: 🎸 expose esbuild logoverride option within compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayKnight committed Nov 7, 2024
1 parent 41a3ede commit 52b6029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/curly-parents-vanish.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@vanilla-extract/integration': minor
---

Exposed esbuild's logLevel option
Exposed esbuild's logLevel & logOverride options
3 changes: 2 additions & 1 deletion packages/integration/src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -75,6 +75,7 @@ export async function compile({
tsconfig: esbuildOptions?.tsconfig,
conditions: esbuildOptions?.conditions,
logLevel: esbuildOptions?.logLevel,
logOverride: esbuildOptions?.logOverride,
});

const { outputFiles, metafile } = result;
Expand Down

0 comments on commit 52b6029

Please sign in to comment.