## Summary This PR makes Rspack support explicit for `@tailwindcss/webpack` by adding `@rspack/core` as an optional peer dependency alongside `webpack`. The loader already works through Rspack's webpack-compatible loader API, as shown in this runnable example: https://github.com/rstackjs/rstack-examples/tree/main/rspack/tailwindcss. The README and package description are updated to document that usage. ## Test plan No Rspack-specific tests were added. The loader implementation is unchanged, and the existing webpack loader tests exercise the same loader API path that Rspack uses, which should cover the relevant behavior. --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"name": "@tailwindcss/webpack",
|
|
"version": "4.3.0",
|
|
"description": "A webpack loader for Tailwind CSS v4.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tailwindlabs/tailwindcss.git",
|
|
"directory": "packages/@tailwindcss-webpack"
|
|
},
|
|
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
|
"homepage": "https://tailwindcss.com",
|
|
"scripts": {
|
|
"build": "tsup-node",
|
|
"dev": "pnpm run build -- --watch"
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"publishConfig": {
|
|
"provenance": true,
|
|
"access": "public"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"dependencies": {
|
|
"@alloc/quick-lru": "^5.2.0",
|
|
"@tailwindcss/node": "workspace:*",
|
|
"@tailwindcss/oxide": "workspace:*",
|
|
"tailwindcss": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"webpack": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@rspack/core": "^1.0.0 || ^2.0.0",
|
|
"webpack": "^5.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@rspack/core": {
|
|
"optional": true
|
|
},
|
|
"webpack": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|