@cloudflare/vite-plugin 1.13.3 → 1.13.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.js +7 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -17095,6 +17095,12 @@ function resolvePluginConfig(pluginConfig, userConfig, viteEnv) {
|
|
|
17095
17095
|
experimental: pluginConfig.experimental ?? {}
|
|
17096
17096
|
};
|
|
17097
17097
|
const root = userConfig.root ? path13.resolve(userConfig.root) : process.cwd();
|
|
17098
|
+
const prefixedEnv = vite5.loadEnv(viteEnv.mode, root, [
|
|
17099
|
+
"CLOUDFLARE_",
|
|
17100
|
+
// TODO: Remove deprecated WRANGLER prefix support in next major version
|
|
17101
|
+
"WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_"
|
|
17102
|
+
]);
|
|
17103
|
+
Object.assign(process.env, prefixedEnv);
|
|
17098
17104
|
if (viteEnv.isPreview) {
|
|
17099
17105
|
return {
|
|
17100
17106
|
...shared,
|
|
@@ -17103,12 +17109,7 @@ function resolvePluginConfig(pluginConfig, userConfig, viteEnv) {
|
|
|
17103
17109
|
};
|
|
17104
17110
|
}
|
|
17105
17111
|
const configPaths = /* @__PURE__ */ new Set();
|
|
17106
|
-
const
|
|
17107
|
-
viteEnv.mode,
|
|
17108
|
-
root,
|
|
17109
|
-
/* prefixes */
|
|
17110
|
-
""
|
|
17111
|
-
);
|
|
17112
|
+
const cloudflareEnv = prefixedEnv.CLOUDFLARE_ENV;
|
|
17112
17113
|
const entryWorkerConfigPath = getValidatedWranglerConfigPath(
|
|
17113
17114
|
root,
|
|
17114
17115
|
pluginConfig.configPath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"tinyglobby": "^0.2.12",
|
|
40
40
|
"unenv": "2.0.0-rc.21",
|
|
41
41
|
"ws": "8.18.0",
|
|
42
|
+
"miniflare": "4.20250923.0",
|
|
42
43
|
"@cloudflare/unenv-preset": "2.7.4",
|
|
43
|
-
"
|
|
44
|
-
"wrangler": "4.38.0"
|
|
44
|
+
"wrangler": "4.39.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@cloudflare/workers-types": "^4.
|
|
47
|
+
"@cloudflare/workers-types": "^4.20250923.0",
|
|
48
48
|
"@types/node": "^22.10.1",
|
|
49
49
|
"@types/ws": "^8.5.13",
|
|
50
50
|
"magic-string": "^0.30.12",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"typescript": "^5.8.3",
|
|
54
54
|
"vite": "7.0.0",
|
|
55
55
|
"vitest": "~3.2.0",
|
|
56
|
-
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
57
56
|
"@cloudflare/containers-shared": "0.2.10",
|
|
57
|
+
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
58
58
|
"@cloudflare/workers-shared": "0.18.8",
|
|
59
59
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"vite": "^6.1.0 || ^7.0.0",
|
|
63
|
-
"wrangler": "^4.
|
|
63
|
+
"wrangler": "^4.39.0"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|