@rsbuild/plugin-tailwindcss 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +22 -22
package/dist/index.js CHANGED
@@ -23,8 +23,8 @@ let src_require = createRequire(import.meta.url), PLUGIN_TAILWINDCSS_NAME = 'rsb
23
23
  importLoaders: 'number' == typeof options.importLoaders ? options.importLoaders + 1 : 1
24
24
  });
25
25
  })(rule, CHAIN_ID.USE.CSS), rule.use('tailwindcss').loader(src_require.resolve('@tailwindcss/webpack')).options(tailwindOptions);
26
- }, cssRule = chain.module.rule(CHAIN_ID.RULE.CSS);
27
- addTailwindLoader(cssRule.oneOf(CHAIN_ID.ONE_OF.CSS_URL)), emitCss && addTailwindLoader(cssRule.oneOf(CHAIN_ID.ONE_OF.CSS_MAIN)), addTailwindLoader(cssRule.oneOf(CHAIN_ID.ONE_OF.CSS_INLINE));
26
+ }, cssRule = chain.module.rule(CHAIN_ID.RULE.CSS), cssUrlRule = cssRule.oneOfs.get(CHAIN_ID.ONE_OF.CSS_URL);
27
+ cssUrlRule && addTailwindLoader(cssUrlRule), emitCss && addTailwindLoader(cssRule.oneOf(CHAIN_ID.ONE_OF.CSS_MAIN)), addTailwindLoader(cssRule.oneOf(CHAIN_ID.ONE_OF.CSS_INLINE));
28
28
  });
29
29
  }
30
30
  });
package/package.json CHANGED
@@ -1,38 +1,33 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-tailwindcss",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Tailwind CSS plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.rs",
6
- "license": "MIT",
6
+ "bugs": {
7
+ "url": "https://github.com/web-infra-dev/rsbuild/issues"
8
+ },
7
9
  "repository": {
8
10
  "type": "git",
9
11
  "url": "https://github.com/web-infra-dev/rsbuild",
10
12
  "directory": "packages/plugin-tailwindcss"
11
13
  },
12
- "files": [
13
- "dist"
14
- ],
14
+ "license": "MIT",
15
15
  "type": "module",
16
- "types": "./dist/index.d.ts",
17
16
  "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "default": "./dist/index.js"
21
- }
22
- },
23
- "publishConfig": {
24
- "access": "public",
25
- "registry": "https://registry.npmjs.org/"
17
+ ".": "./dist/index.js"
26
18
  },
19
+ "types": "./dist/index.d.ts",
20
+ "files": [
21
+ "dist"
22
+ ],
27
23
  "dependencies": {
28
- "@tailwindcss/webpack": "^4.3.0"
24
+ "@tailwindcss/webpack": "^4.3.5"
29
25
  },
30
26
  "devDependencies": {
31
- "@rslib/core": "0.22.0",
32
- "@types/node": "^24.13.1",
33
- "typescript": "^6.0.3",
34
- "@rsbuild/core": "2.0.11",
35
- "@scripts/test-helper": "1.0.0"
27
+ "@rsbuild/core": "2.3.7",
28
+ "@scripts/test-helper": "1.0.0",
29
+ "@types/node": "^26.6.11",
30
+ "typescript": "^6.0.3"
36
31
  },
37
32
  "peerDependencies": {
38
33
  "@rsbuild/core": "^2.0.0"
@@ -42,8 +37,13 @@
42
37
  "optional": true
43
38
  }
44
39
  },
40
+ "publishConfig": {
41
+ "access": "public",
42
+ "registry": "https://registry.npmjs.org/"
43
+ },
45
44
  "scripts": {
46
- "build": "rslib",
47
- "dev": "rslib -w"
45
+ "build": "rs lib",
46
+ "dev": "rs lib -w",
47
+ "test": "rs test"
48
48
  }
49
49
  }