Skip to content

Commit 763745b

Browse files
committed
Move tailwindcss to optional peer dependencies
Fixes #12044 Installing tailwindcss comes with a bunch of junk most people don't need, and at least prettier-plugin-tailwindcss but possibly more subdependecies are unlicensed which makes usage troublesome.
1 parent 428ddb6 commit 763745b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-scripts/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"semver": "^7.3.5",
7070
"source-map-loader": "^3.0.0",
7171
"style-loader": "^3.3.1",
72-
"tailwindcss": "^3.0.2",
7372
"terser-webpack-plugin": "^5.2.5",
7473
"webpack": "^5.64.4",
7574
"webpack-dev-server": "^4.6.0",
@@ -85,9 +84,13 @@
8584
},
8685
"peerDependencies": {
8786
"react": ">= 16",
87+
"tailwindcss": "^3.0.2",
8888
"typescript": "^3.2.1 || ^4"
8989
},
9090
"peerDependenciesMeta": {
91+
"tailwindcss": {
92+
"optional": true
93+
},
9194
"typescript": {
9295
"optional": true
9396
}

0 commit comments

Comments
 (0)