vite-plugin-singlefile-compression 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -137,7 +137,9 @@ async function generateBundle(bundle, config, options) {
137
137
  thisDel.add(bundleName);
138
138
  oldSize += a.source.length;
139
139
  if (!Object.hasOwn(globalAssetsDataURL, name))
140
- globalAssetsDataURL[name] = bufferToDataURL(name, Buffer.from(a.source));
140
+ globalAssetsDataURL[name] = bufferToDataURL(name, Buffer.from(
141
+ //@ts-ignore
142
+ a.source));
141
143
  assetsDataURL[name] = globalAssetsDataURL[name];
142
144
  }
143
145
  element.src = `data:${name}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-singlefile-compression",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -43,7 +43,7 @@
43
43
  "mini-svg-data-uri": ">=1.4.4",
44
44
  "picocolors": ">=1.1.1",
45
45
  "rimraf": ">=6.0.1",
46
- "vite": ">=6.0.13",
46
+ "vite": ">=6.2.5",
47
47
  "@types/html-minifier-terser": ">=7.0.2",
48
48
  "@types/node": ">=22.10.7",
49
49
  "@types/jsdom": ">=21.1.7"