@rsbuild/plugin-stylus 0.1.2 → 0.1.3

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 +1 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -60,10 +60,9 @@ function pluginStylus(options) {
60
60
  rule.use(utils.CHAIN_ID.USE.STYLUS).loader(require.resolve("stylus-loader")).options(mergedOptions);
61
61
  });
62
62
  bundlerType === "rspack" && api.modifyRspackConfig(async (rspackConfig) => {
63
- var _a;
64
63
  const { applyCSSModuleRule } = await import("@rsbuild/core/rspack-plugin-css");
65
64
  const config = api.getNormalizedConfig();
66
- const rules = (_a = rspackConfig.module) == null ? void 0 : _a.rules;
65
+ const rules = rspackConfig.module?.rules;
67
66
  applyCSSModuleRule(rules, import_shared.STYLUS_REGEX, config);
68
67
  });
69
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -24,14 +24,14 @@
24
24
  "dependencies": {
25
25
  "stylus": "0.59.0",
26
26
  "stylus-loader": "7.1.0",
27
- "@rsbuild/shared": "0.1.2"
27
+ "@rsbuild/shared": "0.1.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.3.0",
31
31
  "webpack": "^5.89.0",
32
- "@rsbuild/test-helper": "0.1.2",
33
- "@rsbuild/webpack": "0.1.2",
34
- "@rsbuild/core": "0.1.2"
32
+ "@rsbuild/core": "0.1.3",
33
+ "@rsbuild/webpack": "0.1.3",
34
+ "@rsbuild/test-helper": "0.1.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@rsbuild/core": "0.x"