@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 +1 -1
- package/dist/index.cjs +8 -8
- package/package.json +7 -7
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
23
|
+
PLUGIN_STYLUS_NAME: ()=>PLUGIN_STYLUS_NAME,
|
|
24
|
+
pluginStylus: ()=>pluginStylus
|
|
25
25
|
});
|
|
26
|
-
|
|
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
|
-
|
|
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
|
|
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(
|
|
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.
|
|
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.
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"typescript": "^5.9.
|
|
35
|
-
"@rsbuild/core": "1.
|
|
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.
|
|
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
|
|
47
|
+
"dev": "rslib build -w",
|
|
48
48
|
"bump": "pnpx bumpp --no-tag"
|
|
49
49
|
}
|
|
50
50
|
}
|