@rsbuild/plugin-svgr 0.6.4 → 0.6.6

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 CHANGED
@@ -34,8 +34,8 @@ __export(src_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(src_exports);
36
36
  var import_node_path = __toESM(require("path"));
37
- var import_shared = require("@rsbuild/shared");
38
37
  var import_plugin_react = require("@rsbuild/plugin-react");
38
+ var import_shared = require("@rsbuild/shared");
39
39
  function getSvgoDefaultConfig() {
40
40
  return {
41
41
  plugins: [
package/dist/index.mjs CHANGED
@@ -11,14 +11,14 @@ var __dirname = /* @__PURE__ */ getDirname();
11
11
 
12
12
  // src/index.ts
13
13
  import path2 from "path";
14
+ import { PLUGIN_REACT_NAME } from "@rsbuild/plugin-react";
14
15
  import {
16
+ SCRIPT_REGEX,
15
17
  SVG_REGEX,
16
18
  deepmerge,
17
19
  getDistPath,
18
- getFilename as getFilename2,
19
- SCRIPT_REGEX
20
+ getFilename as getFilename2
20
21
  } from "@rsbuild/shared";
21
- import { PLUGIN_REACT_NAME } from "@rsbuild/plugin-react";
22
22
  function getSvgoDefaultConfig() {
23
23
  return {
24
24
  plugins: [
package/dist/loader.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Config } from '@svgr/core';
2
1
  import { Rspack } from '@rsbuild/core';
2
+ import { Config } from '@svgr/core';
3
3
 
4
4
  /**
5
5
  * Copyright (c) 2017, Smooth Code
package/dist/loader.js CHANGED
@@ -33,11 +33,11 @@ __export(loader_exports, {
33
33
  default: () => loader_default
34
34
  });
35
35
  module.exports = __toCommonJS(loader_exports);
36
+ var import_node_path = require("path");
36
37
  var import_node_util = require("util");
37
38
  var import_core = require("@svgr/core");
38
- var import_node_path = require("path");
39
- var import_plugin_svgo = __toESM(require("@svgr/plugin-svgo"));
40
39
  var import_plugin_jsx = __toESM(require("@svgr/plugin-jsx"));
40
+ var import_plugin_svgo = __toESM(require("@svgr/plugin-svgo"));
41
41
  var transformSvg = (0, import_node_util.callbackify)(
42
42
  async (contents, config, state) => (0, import_core.transform)(contents, config, state)
43
43
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-svgr",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "svgr plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,17 +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.6.4",
30
- "@rsbuild/plugin-react": "0.6.4"
29
+ "@rsbuild/shared": "0.6.6",
30
+ "@rsbuild/plugin-react": "0.6.6"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "16.x",
33
+ "@types/node": "18.x",
34
34
  "typescript": "^5.4.2",
35
- "@rsbuild/core": "0.6.4",
36
- "@scripts/test-helper": "0.6.4"
35
+ "@rsbuild/core": "0.6.6",
36
+ "@scripts/test-helper": "0.6.6"
37
37
  },
38
38
  "peerDependencies": {
39
- "@rsbuild/core": "^0.6.4"
39
+ "@rsbuild/core": "^0.6.6"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",