diff --git a/src/esbuild/postcss.ts b/src/esbuild/postcss.ts index 14d6cfb2..69c83a1c 100644 --- a/src/esbuild/postcss.ts +++ b/src/esbuild/postcss.ts @@ -24,9 +24,12 @@ export const postcssPlugin = ({ if (configCache) { return configCache } + const postCssCtx = { + tsupOptions: build.initialOptions + } try { - const result = await loadConfig({}, process.cwd()) + const result = await loadConfig(postCssCtx, process.cwd()) configCache = result return result } catch (error: any) {