Skip to content

Commit 3116d65

Browse files
Add ESM build of the @tailwindcss/postcss package (tailwindlabs#13693)
* Fixes exports when importing CJS form ESM file * Build a real ESM version of the postcss plugin --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
1 parent 5e737d8 commit 3116d65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@tailwindcss-postcss/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://tailwindcss.com",
1313
"scripts": {
1414
"lint": "tsc --noEmit",
15-
"build": "tsup-node ./src/index.ts --format cjs --dts --cjsInterop --splitting --minify --clean",
15+
"build": "tsup-node ./src/index.ts --format cjs,esm --dts --cjsInterop --splitting --minify --clean",
1616
"dev": "pnpm run build -- --watch"
1717
},
1818
"files": [
@@ -25,6 +25,7 @@
2525
"exports": {
2626
".": {
2727
"types": "./dist/index.d.ts",
28+
"import": "./dist/index.mjs",
2829
"require": "./dist/index.js"
2930
}
3031
},

0 commit comments

Comments
 (0)