From 3f60f6857326d306599af314d7c5dd5c7cb85b04 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 16 Apr 2026 13:39:01 +0200 Subject: [PATCH] fix(shared-tailwind): export CSS under 'style' condition for Vite build @tailwindcss/vite's enhanced-resolve looks for the 'style' export condition when resolving CSS imports. The previous exports field used plain string values which worked in dev but not in the Docker production build (Vite build mode). Adding explicit 'style' + 'default' conditions fixes the "'sources.css' is not exported under the condition 'style'" error. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/shared-tailwind/package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/shared-tailwind/package.json b/packages/shared-tailwind/package.json index 0b5174cd9..ae651fab1 100644 --- a/packages/shared-tailwind/package.json +++ b/packages/shared-tailwind/package.json @@ -4,8 +4,14 @@ "private": true, "type": "module", "exports": { - "./themes.css": "./src/themes.css", - "./sources.css": "./src/sources.css" + "./themes.css": { + "style": "./src/themes.css", + "default": "./src/themes.css" + }, + "./sources.css": { + "style": "./src/sources.css", + "default": "./src/sources.css" + } }, "scripts": { "lint": "eslint ."