vite-plugin-singlefile-compression 1.1.1 → 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/dist/template.js +1 -1
- package/package.json +3 -3
package/dist/template.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
fetch("data:application/gzip;base64,{<script>}").then(r=>
|
|
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.
|
|
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
|
|
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": "^
|
|
52
|
+
"vite": "^6.0.6"
|
|
53
53
|
}
|
|
54
54
|
}
|