From 3116d656f17d8be358cd442d07ec9595dc9b19e3 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Wed, 22 May 2024 19:01:56 -0400 Subject: [PATCH] Add ESM build of the `@tailwindcss/postcss` package (#13693) * Fixes exports when importing CJS form ESM file * Build a real ESM version of the postcss plugin --------- Co-authored-by: Jordan Pittman --- packages/@tailwindcss-postcss/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@tailwindcss-postcss/package.json b/packages/@tailwindcss-postcss/package.json index 27c7342df..0d78b58a4 100644 --- a/packages/@tailwindcss-postcss/package.json +++ b/packages/@tailwindcss-postcss/package.json @@ -12,7 +12,7 @@ "homepage": "https://tailwindcss.com", "scripts": { "lint": "tsc --noEmit", - "build": "tsup-node ./src/index.ts --format cjs --dts --cjsInterop --splitting --minify --clean", + "build": "tsup-node ./src/index.ts --format cjs,esm --dts --cjsInterop --splitting --minify --clean", "dev": "pnpm run build -- --watch" }, "files": [ @@ -25,6 +25,7 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" } },