@rsbuild/plugin-stylus 0.1.5 → 0.1.7

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.
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ function pluginStylus(options) {
49
49
  mergeFn: import_shared.deepmerge
50
50
  });
51
51
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(import_shared.STYLUS_REGEX);
52
- const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/rspack-plugin-css"));
52
+ const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/provider"));
53
53
  await applyBaseCSSRule({
54
54
  rule,
55
55
  config,
@@ -60,7 +60,7 @@ 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
- const { applyCSSModuleRule } = await import("@rsbuild/core/rspack-plugin-css");
63
+ const { applyCSSModuleRule } = await import("@rsbuild/core/provider");
64
64
  const config = api.getNormalizedConfig();
65
65
  const rules = rspackConfig.module?.rules;
66
66
  applyCSSModuleRule(rules, import_shared.STYLUS_REGEX, config);
package/dist/index.mjs CHANGED
@@ -36,7 +36,7 @@ function pluginStylus(options) {
36
36
  mergeFn: deepmerge
37
37
  });
38
38
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(STYLUS_REGEX);
39
- const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/rspack-plugin-css"));
39
+ const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/provider"));
40
40
  await applyBaseCSSRule({
41
41
  rule,
42
42
  config,
@@ -47,7 +47,7 @@ function pluginStylus(options) {
47
47
  rule.use(utils.CHAIN_ID.USE.STYLUS).loader(__require.resolve("stylus-loader")).options(mergedOptions);
48
48
  });
49
49
  bundlerType === "rspack" && api.modifyRspackConfig(async (rspackConfig) => {
50
- const { applyCSSModuleRule } = await import("@rsbuild/core/rspack-plugin-css");
50
+ const { applyCSSModuleRule } = await import("@rsbuild/core/provider");
51
51
  const config = api.getNormalizedConfig();
52
52
  const rules = rspackConfig.module?.rules;
53
53
  applyCSSModuleRule(rules, STYLUS_REGEX, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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.5"
27
+ "@rsbuild/shared": "0.1.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.3.0",
31
31
  "webpack": "^5.89.0",
32
- "@rsbuild/core": "0.1.5",
33
- "@rsbuild/test-helper": "0.1.5",
34
- "@rsbuild/webpack": "0.1.5"
32
+ "@rsbuild/core": "0.1.7",
33
+ "@rsbuild/test-helper": "0.1.7",
34
+ "@rsbuild/webpack": "0.1.7"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@rsbuild/core": "0.x"