Skip to content

Commit

Permalink
fix(postcss): move to ESM first + dual ESM/CJS + missing `@unocss/pos…
Browse files Browse the repository at this point in the history
…tcss/esm` subpackage export (#3678)
  • Loading branch information
userquin committed Apr 1, 2024
1 parent 42187e2 commit 7eda3ab
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions packages/postcss/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@unocss/postcss",
"type": "module",
"version": "0.59.0-beta.1",
"description": "PostCSS plugin for UnoCSS",
"author": "sibbng <sibbngheid@gmail.com>",
Expand All @@ -18,13 +19,31 @@
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./esm": {
"types": "./dist/esm.d.mts",
"default": "./dist/esm.mjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"dist/*",
"./*"
]
}
},
"files": [
"dist"
],
Expand All @@ -47,4 +66,4 @@
"magic-string": "^0.30.8",
"postcss": "^8.4.38"
}
}
}

0 comments on commit 7eda3ab

Please sign in to comment.