@rsbuild/plugin-stylus 0.3.2 → 0.3.4

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.d.ts CHANGED
@@ -15,4 +15,4 @@ type StylusLoaderOptions = {
15
15
  type PluginStylusOptions = StylusLoaderOptions;
16
16
  declare function pluginStylus(options?: PluginStylusOptions): RsbuildPlugin;
17
17
 
18
- export { PluginStylusOptions, pluginStylus };
18
+ export { type PluginStylusOptions, pluginStylus };
package/dist/index.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import { createRequire } from 'module';
2
+ var require = createRequire(import.meta['url']);
3
+
1
4
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
5
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
6
  }) : x)(function(x) {
@@ -6,14 +9,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
9
  throw Error('Dynamic require of "' + x + '" is not supported');
7
10
  });
8
11
 
9
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
10
13
  import { fileURLToPath } from "url";
11
14
  import path from "path";
12
15
 
13
- // ../../scripts/requireShims.js
14
- import { createRequire } from "module";
15
- global.require = createRequire(import.meta.url);
16
-
17
16
  // src/index.ts
18
17
  import { PLUGIN_STYLUS_NAME } from "@rsbuild/core";
19
18
  import { deepmerge, mergeChainedOptions } from "@rsbuild/shared";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-stylus",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Stylus plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -23,24 +23,19 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "stylus": "0.59.0",
27
- "stylus-loader": "7.1.0",
28
- "@rsbuild/shared": "0.3.2"
26
+ "stylus": "0.62.0",
27
+ "stylus-loader": "7.1.3",
28
+ "@rsbuild/shared": "0.3.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.3.0",
32
32
  "webpack": "^5.89.0",
33
- "@rsbuild/core": "0.3.2",
34
- "@scripts/test-helper": "1.0.0",
35
- "@rsbuild/webpack": "0.3.2"
33
+ "@rsbuild/core": "0.3.4",
34
+ "@scripts/test-helper": "0.3.4",
35
+ "@rsbuild/webpack": "0.3.4"
36
36
  },
37
37
  "peerDependencies": {
38
- "@rsbuild/core": "0.x"
39
- },
40
- "peerDependenciesMeta": {
41
- "@rsbuild/core": {
42
- "optional": true
43
- }
38
+ "@rsbuild/core": "^0.3.4"
44
39
  },
45
40
  "publishConfig": {
46
41
  "access": "public",