@rsbuild/plugin-stylus 0.5.9 → 0.6.1

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
@@ -51,7 +51,7 @@ function pluginStylus(options) {
51
51
  });
52
52
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(STYLUS_REGEX);
53
53
  const { bundlerType } = api.context;
54
- const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/provider"));
54
+ const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/internal"));
55
55
  await applyBaseCSSRule({
56
56
  rule,
57
57
  config,
@@ -62,7 +62,7 @@ function pluginStylus(options) {
62
62
  rule.use(utils.CHAIN_ID.USE.STYLUS).loader(require.resolve("stylus-loader")).options(mergedOptions);
63
63
  });
64
64
  api.modifyRspackConfig(async (rspackConfig) => {
65
- const { applyCSSModuleRule } = await import("@rsbuild/core/provider");
65
+ const { applyCSSModuleRule } = await import("@rsbuild/core/internal");
66
66
  const config = api.getNormalizedConfig();
67
67
  const rules = rspackConfig.module?.rules;
68
68
  applyCSSModuleRule(rules, STYLUS_REGEX, config);
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
9
9
  throw Error('Dynamic require of "' + x + '" is not supported');
10
10
  });
11
11
 
12
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.48.3/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.48.4/node_modules/@modern-js/module-tools/shims/esm.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
@@ -32,7 +32,7 @@ function pluginStylus(options) {
32
32
  });
33
33
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(STYLUS_REGEX);
34
34
  const { bundlerType } = api.context;
35
- const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/provider"));
35
+ const { applyBaseCSSRule } = await (bundlerType === "webpack" ? import("@rsbuild/webpack/plugin-css") : import("@rsbuild/core/internal"));
36
36
  await applyBaseCSSRule({
37
37
  rule,
38
38
  config,
@@ -43,7 +43,7 @@ function pluginStylus(options) {
43
43
  rule.use(utils.CHAIN_ID.USE.STYLUS).loader(__require.resolve("stylus-loader")).options(mergedOptions);
44
44
  });
45
45
  api.modifyRspackConfig(async (rspackConfig) => {
46
- const { applyCSSModuleRule } = await import("@rsbuild/core/provider");
46
+ const { applyCSSModuleRule } = await import("@rsbuild/core/internal");
47
47
  const config = api.getNormalizedConfig();
48
48
  const rules = rspackConfig.module?.rules;
49
49
  applyCSSModuleRule(rules, STYLUS_REGEX, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.5.9",
3
+ "version": "0.6.1",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,17 +25,17 @@
25
25
  "dependencies": {
26
26
  "stylus": "0.63.0",
27
27
  "stylus-loader": "8.1.0",
28
- "@rsbuild/shared": "0.5.9"
28
+ "@rsbuild/shared": "0.6.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.4.2",
32
32
  "webpack": "^5.91.0",
33
- "@rsbuild/core": "0.5.9",
34
- "@scripts/test-helper": "0.5.9",
35
- "@rsbuild/webpack": "0.5.9"
33
+ "@rsbuild/core": "0.6.1",
34
+ "@scripts/test-helper": "0.6.1",
35
+ "@rsbuild/webpack": "0.6.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "@rsbuild/core": "^0.5.9"
38
+ "@rsbuild/core": "^0.6.1"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public",