@rsbuild/plugin-stylus 0.1.9 → 0.2.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
@@ -43,7 +43,7 @@ function pluginStylus(options) {
43
43
  const config = api.getNormalizedConfig();
44
44
  const mergedOptions = (0, import_shared.mergeChainedOptions)({
45
45
  defaults: {
46
- sourceMap: (0, import_shared.isUseCssSourceMap)(config)
46
+ sourceMap: config.output.sourceMap.css
47
47
  },
48
48
  options,
49
49
  mergeFn: import_shared.deepmerge
package/dist/index.mjs CHANGED
@@ -15,12 +15,7 @@ import { createRequire } from "module";
15
15
  global.require = createRequire(import.meta.url);
16
16
 
17
17
  // src/index.ts
18
- import {
19
- deepmerge,
20
- STYLUS_REGEX,
21
- isUseCssSourceMap,
22
- mergeChainedOptions
23
- } from "@rsbuild/shared";
18
+ import { deepmerge, STYLUS_REGEX, mergeChainedOptions } from "@rsbuild/shared";
24
19
  function pluginStylus(options) {
25
20
  return {
26
21
  name: "rsbuild:stylus",
@@ -30,7 +25,7 @@ function pluginStylus(options) {
30
25
  const config = api.getNormalizedConfig();
31
26
  const mergedOptions = mergeChainedOptions({
32
27
  defaults: {
33
- sourceMap: isUseCssSourceMap(config)
28
+ sourceMap: config.output.sourceMap.css
34
29
  },
35
30
  options,
36
31
  mergeFn: deepmerge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,14 +25,14 @@
25
25
  "dependencies": {
26
26
  "stylus": "0.59.0",
27
27
  "stylus-loader": "7.1.0",
28
- "@rsbuild/shared": "0.1.9"
28
+ "@rsbuild/shared": "0.2.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.3.0",
32
32
  "webpack": "^5.89.0",
33
- "@rsbuild/test-helper": "0.1.9",
34
- "@rsbuild/webpack": "0.1.9",
35
- "@rsbuild/core": "0.1.9"
33
+ "@rsbuild/core": "0.2.1",
34
+ "@rsbuild/test-helper": "0.2.1",
35
+ "@rsbuild/webpack": "0.2.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@rsbuild/core": "0.x"