@rsbuild/plugin-stylus 0.7.0-beta.6 → 0.7.0-beta.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.cjs CHANGED
@@ -50,8 +50,7 @@ function pluginStylus(options) {
50
50
  mergeFn: import_shared.deepmerge
51
51
  });
52
52
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(STYLUS_REGEX);
53
- const { __internalHelper } = await import("@rsbuild/core");
54
- await __internalHelper.applyCSSRule({
53
+ await import_core.__internalHelper.applyCSSRule({
55
54
  rule,
56
55
  config,
57
56
  context: api.context,
package/dist/index.js CHANGED
@@ -14,7 +14,10 @@ import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
16
16
  // src/index.ts
17
- import { PLUGIN_STYLUS_NAME } from "@rsbuild/core";
17
+ import {
18
+ PLUGIN_STYLUS_NAME,
19
+ __internalHelper
20
+ } from "@rsbuild/core";
18
21
  import { deepmerge, mergeChainedOptions } from "@rsbuild/shared";
19
22
  function pluginStylus(options) {
20
23
  return {
@@ -31,7 +34,6 @@ function pluginStylus(options) {
31
34
  mergeFn: deepmerge
32
35
  });
33
36
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.STYLUS).test(STYLUS_REGEX);
34
- const { __internalHelper } = await import("@rsbuild/core");
35
37
  await __internalHelper.applyCSSRule({
36
38
  rule,
37
39
  config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.7.0-beta.6",
3
+ "version": "0.7.0-beta.7",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,17 +25,15 @@
25
25
  "dependencies": {
26
26
  "stylus": "0.63.0",
27
27
  "stylus-loader": "8.1.0",
28
- "@rsbuild/shared": "0.7.0-beta.6"
28
+ "@rsbuild/shared": "0.7.0-beta.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.4.2",
32
- "webpack": "^5.91.0",
33
- "@rsbuild/core": "0.7.0-beta.6",
34
- "@rsbuild/webpack": "0.7.0-beta.6",
35
- "@scripts/test-helper": "0.7.0-beta.6"
32
+ "@rsbuild/core": "0.7.0-beta.7",
33
+ "@scripts/test-helper": "0.7.0-beta.7"
36
34
  },
37
35
  "peerDependencies": {
38
- "@rsbuild/core": "^0.7.0-beta.6"
36
+ "@rsbuild/core": "^0.7.0-beta.7"
39
37
  },
40
38
  "publishConfig": {
41
39
  "access": "public",