From a110bbae52ccec4de6932de07d4b344477204393 Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Tue, 9 Jan 2024 07:56:31 -0300 Subject: [PATCH] fix(tailwind): bundle postcss as well to avoid next build errors with tty --- packages/tailwind/vite.config.ts | 2 +- pnpm-lock.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/tailwind/vite.config.ts b/packages/tailwind/vite.config.ts index 60b1e9afac..5636aa6bf7 100644 --- a/packages/tailwind/vite.config.ts +++ b/packages/tailwind/vite.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ plugins: [dts({ include: ["src"], outDir: "dist" })], build: { rollupOptions: { - external: ["react", "react-dom", "postcss", /react-dom\/.*/], + external: ["react", "react-dom", /react-dom\/.*/], }, lib: { entry: path.resolve(__dirname, "src/index.ts"), diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5014ad0193..84c4c1971f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2892,6 +2892,15 @@ packages: react-dom: 18.2.0(react@18.2.0) dev: false + /@react-email/tailwind@0.0.14-canary.0(react@18.2.0): + resolution: {integrity: sha512-jvuE8ivUATckyfSXXmYDC+LM1l9OVx//Xar/l+/Tx1swTHo0cJqXrFgRx8GdOUT1j38PqtqnwumpW3fgCAItdg==} + engines: {node: '>=18.0.0'} + peerDependencies: + react: 18.2.0 + dependencies: + react: 18.2.0 + dev: false + /@rollup/pluginutils@5.1.0: resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'}