@rsbuild/plugin-stylus 0.3.0 → 0.3.2
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -33,10 +33,11 @@ __export(src_exports, {
|
|
|
33
33
|
pluginStylus: () => pluginStylus
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
|
+
var import_core = require("@rsbuild/core");
|
|
36
37
|
var import_shared = require("@rsbuild/shared");
|
|
37
38
|
function pluginStylus(options) {
|
|
38
39
|
return {
|
|
39
|
-
name:
|
|
40
|
+
name: import_core.PLUGIN_STYLUS_NAME,
|
|
40
41
|
setup(api) {
|
|
41
42
|
const STYLUS_REGEX = /\.styl(us)?$/;
|
|
42
43
|
api.modifyBundlerChain(async (chain, utils) => {
|
package/dist/index.mjs
CHANGED
|
@@ -15,10 +15,11 @@ import { createRequire } from "module";
|
|
|
15
15
|
global.require = createRequire(import.meta.url);
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
|
+
import { PLUGIN_STYLUS_NAME } from "@rsbuild/core";
|
|
18
19
|
import { deepmerge, mergeChainedOptions } from "@rsbuild/shared";
|
|
19
20
|
function pluginStylus(options) {
|
|
20
21
|
return {
|
|
21
|
-
name:
|
|
22
|
+
name: PLUGIN_STYLUS_NAME,
|
|
22
23
|
setup(api) {
|
|
23
24
|
const STYLUS_REGEX = /\.styl(us)?$/;
|
|
24
25
|
api.modifyBundlerChain(async (chain, utils) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-stylus",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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.3.
|
|
28
|
+
"@rsbuild/shared": "0.3.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"webpack": "^5.89.0",
|
|
33
|
-
"@rsbuild/core": "0.3.
|
|
34
|
-
"@
|
|
35
|
-
"@rsbuild/webpack": "0.3.
|
|
33
|
+
"@rsbuild/core": "0.3.2",
|
|
34
|
+
"@scripts/test-helper": "1.0.0",
|
|
35
|
+
"@rsbuild/webpack": "0.3.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@rsbuild/core": "0.x"
|