@cloudflare/vite-plugin 0.0.2 → 0.0.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/asset-workers/asset-worker.js +548 -546
- package/dist/asset-workers/router-worker.js +249 -237
- package/dist/index.js +3 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2332,7 +2332,9 @@ function cloudflare2(pluginConfig = {}) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
config.no_bundle = true;
|
|
2334
2334
|
config.rules = [{ type: "ESModule", globs: ["**/*.js"] }];
|
|
2335
|
-
config.unsafe
|
|
2335
|
+
if (config.unsafe && Object.keys(config.unsafe).length === 0) {
|
|
2336
|
+
config.unsafe = void 0;
|
|
2337
|
+
}
|
|
2336
2338
|
this.emitFile({
|
|
2337
2339
|
type: "asset",
|
|
2338
2340
|
fileName: "wrangler.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@hattip/adapter-node": "^0.0.49",
|
|
37
37
|
"unenv": "npm:unenv-nightly@2.0.0-20241218-183400-5d6aec3",
|
|
38
38
|
"ws": "^8.18.0",
|
|
39
|
-
"miniflare": "3.
|
|
39
|
+
"miniflare": "3.20250124.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@cloudflare/workers-types": "^4.
|
|
42
|
+
"@cloudflare/workers-types": "^4.20250121.0",
|
|
43
43
|
"@types/node": "^22.10.1",
|
|
44
44
|
"@types/ws": "^8.5.13",
|
|
45
45
|
"magic-string": "^0.30.12",
|
|
46
46
|
"tsup": "8.3.0",
|
|
47
47
|
"typescript": "^5.7.2",
|
|
48
48
|
"vite": "^6.0.7",
|
|
49
|
-
"@cloudflare/workers-shared": "0.12.
|
|
49
|
+
"@cloudflare/workers-shared": "0.12.5",
|
|
50
50
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
51
|
-
"wrangler": "3.
|
|
51
|
+
"wrangler": "3.106.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vite": "^6.0.7",
|