vite-plugin-singlefile-compression 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -94,6 +94,8 @@ export interface Options {
94
94
 
95
95
  ## Effect
96
96
 
97
+ https://bddjr.github.io/vite-plugin-singlefile-compression/
98
+
97
99
  ```
98
100
  vite v5.4.11 building for production...
99
101
  ✓ 45 modules transformed.
package/dist/template.js CHANGED
@@ -1 +1 @@
1
- fetch("data:application/gzip;base64,{<script>}").then(r=>r.blob()).then(b=>new Response(b.stream().pipeThrough(new DecompressionStream("gzip")),{headers:{"Content-Type":"text/javascript"}}).blob()).then(b=>import(b=URL.createObjectURL(b)).finally(()=>URL.revokeObjectURL(b)))
1
+ fetch("data:application/gzip;base64,{<script>}").then(r=>new Response(r.body.pipeThrough(new DecompressionStream("gzip")),{headers:{"Content-Type":"text/javascript"}}).blob()).then(b=>import(b=URL.createObjectURL(b)).finally(()=>URL.revokeObjectURL(b)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-singlefile-compression",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "scripts": {
15
15
  "build": "rimraf dist && tsc && node build.js && cd test && npm run build",
16
- "prepublishOnly": "npm run build && npm config set registry https://registry.npmjs.org"
16
+ "prepublishOnly": "npm run build"
17
17
  },
18
18
  "author": "bddjr",
19
19
  "license": "MIT",
@@ -49,6 +49,6 @@
49
49
  "picocolors": "^1.1.1",
50
50
  "rimraf": "^6.0.1",
51
51
  "typescript": "^5.7.2",
52
- "vite": "^5.4.11"
52
+ "vite": "^6.0.6"
53
53
  }
54
54
  }