@rsbuild/plugin-image-compress 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
@@ -34,4 +34,4 @@ interface IPluginImageCompress {
34
34
  /** Options enable by default: {@link DEFAULT_OPTIONS} */
35
35
  declare const pluginImageCompress: IPluginImageCompress;
36
36
 
37
- export { DEFAULT_OPTIONS, IPluginImageCompress, PluginImageCompressOptions, pluginImageCompress };
37
+ export { DEFAULT_OPTIONS, type IPluginImageCompress, type PluginImageCompressOptions, pluginImageCompress };
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 __defProp = Object.defineProperty;
2
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
6
  var __publicField = (obj, key, value) => {
@@ -5,14 +8,10 @@ var __publicField = (obj, key, value) => {
5
8
  return value;
6
9
  };
7
10
 
8
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
11
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
9
12
  import { fileURLToPath } from "url";
10
13
  import path from "path";
11
14
 
12
- // ../../scripts/requireShims.js
13
- import { createRequire } from "module";
14
- global.require = createRequire(import.meta.url);
15
-
16
15
  // src/index.ts
17
16
  import assert2 from "assert";
18
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-image-compress",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Image compress plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,15 +25,18 @@
25
25
  "dependencies": {
26
26
  "@napi-rs/image": "^1.7.0",
27
27
  "svgo": "^3.2.0",
28
- "@rsbuild/shared": "0.3.2"
28
+ "@rsbuild/shared": "0.3.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "16.x",
32
32
  "typescript": "^5.3.0",
33
33
  "webpack": "^5.89.0",
34
- "@rsbuild/core": "0.3.2",
35
- "@scripts/test-helper": "1.0.0",
36
- "@rsbuild/webpack": "0.3.2"
34
+ "@rsbuild/core": "0.3.4",
35
+ "@scripts/test-helper": "0.3.4",
36
+ "@rsbuild/webpack": "0.3.4"
37
+ },
38
+ "peerDependencies": {
39
+ "@rsbuild/core": "^0.3.4"
37
40
  },
38
41
  "publishConfig": {
39
42
  "access": "public",