@rsbuild/plugin-svgr 0.3.3 → 0.3.5

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 PluginSvgrOptions = {
15
15
  };
16
16
  declare const pluginSvgr: (options?: PluginSvgrOptions) => RsbuildPlugin;
17
17
 
18
- export { PluginSvgrOptions, SvgDefaultExport, pluginSvgr };
18
+ export { type PluginSvgrOptions, type SvgDefaultExport, pluginSvgr };
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
1
+ import { createRequire } from 'module';
2
+ var require = createRequire(import.meta['url']);
3
+
4
+
5
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.46.1_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
2
6
  import { fileURLToPath } from "url";
3
7
  import path from "path";
4
8
  var getFilename = () => fileURLToPath(import.meta.url);
5
9
  var getDirname = () => path.dirname(getFilename());
6
10
  var __dirname = /* @__PURE__ */ getDirname();
7
11
 
8
- // ../../scripts/requireShims.js
9
- import { createRequire } from "module";
10
- global.require = createRequire(import.meta.url);
11
-
12
12
  // src/index.ts
13
13
  import path2 from "path";
14
14
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-svgr",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "svgr plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,14 +26,17 @@
26
26
  "@svgr/core": "8.1.0",
27
27
  "@svgr/plugin-jsx": "8.1.0",
28
28
  "@svgr/plugin-svgo": "8.1.0",
29
- "@rsbuild/shared": "0.3.3",
30
- "@rsbuild/plugin-react": "0.3.3"
29
+ "@rsbuild/shared": "0.3.5",
30
+ "@rsbuild/plugin-react": "0.3.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "16.x",
34
34
  "typescript": "^5.3.0",
35
- "@rsbuild/core": "0.3.3",
36
- "@scripts/test-helper": "1.0.0"
35
+ "@rsbuild/core": "0.3.5",
36
+ "@scripts/test-helper": "0.3.5"
37
+ },
38
+ "peerDependencies": {
39
+ "@rsbuild/core": "^0.3.5"
37
40
  },
38
41
  "publishConfig": {
39
42
  "access": "public",