@rsbuild/plugin-stylus 1.2.0 → 1.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/README.md CHANGED
@@ -7,7 +7,7 @@ An Rsbuild plugin to use Stylus as the CSS preprocessor.
7
7
  <img src="https://img.shields.io/npm/v/@rsbuild/plugin-stylus?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
8
8
  </a>
9
9
  <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" />
10
- <a href="https://npmcharts.com/compare/@rsbuild/plugin-stylus?minimal=true"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-stylus.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
10
+ <a href="https://npmcharts.com/compare/@rsbuild/plugin-stylus"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-stylus.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
11
11
  </p>
12
12
 
13
13
  ## Documentation
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
2
+ const __rslib_import_meta_url__ = "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
3
  var __webpack_require__ = {};
4
4
  __webpack_require__.n = (module)=>{
5
5
  var getter = module && module.__esModule ? ()=>module.default : ()=>module;
@@ -12,7 +12,7 @@ __webpack_require__.n = (module)=>{
12
12
  get: definition[key]
13
13
  });
14
14
  }, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
15
- 'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
15
+ "u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
16
16
  value: 'Module'
17
17
  }), Object.defineProperty(exports1, '__esModule', {
18
18
  value: !0
@@ -20,12 +20,12 @@ __webpack_require__.n = (module)=>{
20
20
  };
21
21
  var __webpack_exports__ = {};
22
22
  __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
23
- pluginStylus: ()=>pluginStylus,
24
- PLUGIN_STYLUS_NAME: ()=>PLUGIN_STYLUS_NAME
23
+ PLUGIN_STYLUS_NAME: ()=>PLUGIN_STYLUS_NAME,
24
+ pluginStylus: ()=>pluginStylus
25
25
  });
26
- let external_node_module_namespaceObject = require("node:module"), external_deepmerge_namespaceObject = require("deepmerge");
26
+ const external_node_module_namespaceObject = require("node:module"), external_deepmerge_namespaceObject = require("deepmerge");
27
27
  var external_deepmerge_default = __webpack_require__.n(external_deepmerge_namespaceObject);
28
- let external_reduce_configs_namespaceObject = require("reduce-configs"), src_require = (0, external_node_module_namespaceObject.createRequire)(__rslib_import_meta_url__), PLUGIN_STYLUS_NAME = 'rsbuild:stylus', pluginStylus = (options)=>({
28
+ const external_reduce_configs_namespaceObject = require("reduce-configs"), src_require = (0, external_node_module_namespaceObject.createRequire)(__rslib_import_meta_url__), PLUGIN_STYLUS_NAME = 'rsbuild:stylus', pluginStylus = (options)=>({
29
29
  name: PLUGIN_STYLUS_NAME,
30
30
  setup (api) {
31
31
  api.modifyBundlerChain((chain, { CHAIN_ID, environment })=>{
@@ -52,10 +52,10 @@ let external_reduce_configs_namespaceObject = require("reduce-configs"), src_req
52
52
  });
53
53
  }
54
54
  });
55
- for(var __webpack_i__ in exports.PLUGIN_STYLUS_NAME = __webpack_exports__.PLUGIN_STYLUS_NAME, exports.pluginStylus = __webpack_exports__.pluginStylus, __webpack_exports__)-1 === [
55
+ for(var __rspack_i in exports.PLUGIN_STYLUS_NAME = __webpack_exports__.PLUGIN_STYLUS_NAME, exports.pluginStylus = __webpack_exports__.pluginStylus, __webpack_exports__)-1 === [
56
56
  "PLUGIN_STYLUS_NAME",
57
57
  "pluginStylus"
58
- ].indexOf(__webpack_i__) && (exports[__webpack_i__] = __webpack_exports__[__webpack_i__]);
58
+ ].indexOf(__rspack_i) && (exports[__rspack_i] = __webpack_exports__[__rspack_i]);
59
59
  Object.defineProperty(exports, '__esModule', {
60
60
  value: !0
61
61
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "repository": {
@@ -29,14 +29,14 @@
29
29
  "stylus-loader": "8.1.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@rslib/core": "0.12.2",
33
- "@types/node": "^22.17.2",
34
- "typescript": "^5.9.2",
35
- "@rsbuild/core": "1.5.0",
32
+ "@rslib/core": "0.19.1",
33
+ "@types/node": "^24.10.4",
34
+ "typescript": "^5.9.3",
35
+ "@rsbuild/core": "1.7.2",
36
36
  "@scripts/test-helper": "1.0.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "@rsbuild/core": "1.x"
39
+ "@rsbuild/core": "^1.0.0 || ^2.0.0-0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rslib build",
47
- "dev": "rslib build --watch",
47
+ "dev": "rslib build -w",
48
48
  "bump": "pnpx bumpp --no-tag"
49
49
  }
50
50
  }