@rsbuild/plugin-svgr 0.1.9 → 0.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/dist/index.js CHANGED
@@ -59,8 +59,8 @@ var pluginSvgr = (options = {}) => ({
59
59
  const config = api.getNormalizedConfig();
60
60
  const { svgDefaultExport = "url" } = options;
61
61
  const assetType = "svg";
62
- const distDir = (0, import_shared.getDistPath)(config.output, assetType);
63
- const filename = (0, import_shared.getFilename)(config.output, assetType, isProd);
62
+ const distDir = (0, import_shared.getDistPath)(config, assetType);
63
+ const filename = (0, import_shared.getFilename)(config, assetType, isProd);
64
64
  const outputName = import_path.default.posix.join(distDir, filename);
65
65
  const maxSize = config.output.dataUriLimit[assetType];
66
66
  chain.module.rules.delete(CHAIN_ID.RULE.SVG);
package/dist/index.mjs CHANGED
@@ -48,8 +48,8 @@ var pluginSvgr = (options = {}) => ({
48
48
  const config = api.getNormalizedConfig();
49
49
  const { svgDefaultExport = "url" } = options;
50
50
  const assetType = "svg";
51
- const distDir = getDistPath(config.output, assetType);
52
- const filename = getFilename(config.output, assetType, isProd);
51
+ const distDir = getDistPath(config, assetType);
52
+ const filename = getFilename(config, assetType, isProd);
53
53
  const outputName = path2.posix.join(distDir, filename);
54
54
  const maxSize = config.output.dataUriLimit[assetType];
55
55
  chain.module.rules.delete(CHAIN_ID.RULE.SVG);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-svgr",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "svgr plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "@svgr/webpack": "8.0.1",
26
26
  "url-loader": "4.1.1",
27
- "@rsbuild/shared": "0.1.9"
27
+ "@rsbuild/shared": "0.2.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/node": "^16",
30
+ "@types/node": "16.x",
31
31
  "typescript": "^5.3.0",
32
- "@rsbuild/core": "0.1.9",
33
- "@rsbuild/test-helper": "0.1.9"
32
+ "@rsbuild/core": "0.2.1",
33
+ "@rsbuild/test-helper": "0.2.1"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",