@rsbuild/plugin-stylus 1.0.0-alpha.0 → 1.0.0-alpha.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.cjs CHANGED
@@ -34,15 +34,15 @@ __export(src_exports, {
34
34
  pluginStylus: () => pluginStylus
35
35
  });
36
36
  module.exports = __toCommonJS(src_exports);
37
- var import_core = require("@rsbuild/core");
38
37
  var import_shared = require("@rsbuild/shared");
38
+ var import_reduce_configs = require("reduce-configs");
39
39
  var PLUGIN_STYLUS_NAME = "rsbuild:stylus";
40
40
  var pluginStylus = (options) => ({
41
41
  name: PLUGIN_STYLUS_NAME,
42
42
  setup(api) {
43
43
  api.modifyBundlerChain(async (chain, { CHAIN_ID, environment }) => {
44
44
  const { config } = environment;
45
- const mergedOptions = (0, import_core.reduceConfigs)({
45
+ const mergedOptions = (0, import_reduce_configs.reduceConfigs)({
46
46
  initial: {
47
47
  sourceMap: config.output.sourceMap.css
48
48
  },
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type RsbuildPlugin } from '@rsbuild/core';
1
+ import type { RsbuildPlugin } from '@rsbuild/core';
2
2
  export declare const PLUGIN_STYLUS_NAME = "rsbuild:stylus";
3
3
  type StylusOptions = {
4
4
  use?: string[];
package/dist/index.js CHANGED
@@ -14,8 +14,8 @@ import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
16
16
  // src/index.ts
17
- import { reduceConfigs } from "@rsbuild/core";
18
17
  import { cloneDeep, deepmerge } from "@rsbuild/shared";
18
+ import { reduceConfigs } from "reduce-configs";
19
19
  var PLUGIN_STYLUS_NAME = "rsbuild:stylus";
20
20
  var pluginStylus = (options) => ({
21
21
  name: PLUGIN_STYLUS_NAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -23,17 +23,18 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
+ "reduce-configs": "^1.0.0",
26
27
  "stylus": "0.63.0",
27
28
  "stylus-loader": "8.1.0",
28
- "@rsbuild/shared": "1.0.0-alpha.0"
29
+ "@rsbuild/shared": "1.0.0-alpha.1"
29
30
  },
30
31
  "devDependencies": {
31
32
  "typescript": "^5.5.2",
32
33
  "@rsbuild/core": "1.0.0-alpha.0",
33
- "@scripts/test-helper": "1.0.0-alpha.0"
34
+ "@scripts/test-helper": "1.0.0-alpha.1"
34
35
  },
35
36
  "peerDependencies": {
36
- "@rsbuild/core": "^1.0.0-alpha.0"
37
+ "@rsbuild/core": "^1.0.0-alpha.1"
37
38
  },
38
39
  "publishConfig": {
39
40
  "access": "public",