@cloudflare/vite-plugin 2.0.0-beta.v.2 → 2.0.0-beta.v.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.
package/dist/index.mjs
CHANGED
|
@@ -85103,6 +85103,11 @@ function resolveWorker(workerConfig, devOnly, directoryName) {
|
|
|
85103
85103
|
};
|
|
85104
85104
|
}
|
|
85105
85105
|
const CONFIG_FILENAME = "cloudflare.config.ts";
|
|
85106
|
+
const WRANGLER_CONFIG_FILENAMES = [
|
|
85107
|
+
"wrangler.json",
|
|
85108
|
+
"wrangler.jsonc",
|
|
85109
|
+
"wrangler.toml"
|
|
85110
|
+
];
|
|
85106
85111
|
const TYPES_OUTPUT_PATH = ".cloudflare/types/index.d.ts";
|
|
85107
85112
|
const CONFIG_PACKAGE = "cf/config";
|
|
85108
85113
|
/**
|
|
@@ -85115,7 +85120,11 @@ const CONFIG_PACKAGE = "cf/config";
|
|
|
85115
85120
|
*/
|
|
85116
85121
|
async function loadCloudflareConfig(options) {
|
|
85117
85122
|
const configPath = path.resolve(options.root, CONFIG_FILENAME);
|
|
85118
|
-
if (!fs$3.existsSync(configPath))
|
|
85123
|
+
if (!fs$3.existsSync(configPath)) {
|
|
85124
|
+
const wranglerConfigFilename = WRANGLER_CONFIG_FILENAMES.find((filename) => fs$3.existsSync(path.resolve(options.root, filename)));
|
|
85125
|
+
if (wranglerConfigFilename !== void 0) throw new Error(`Found \`${wranglerConfigFilename}\` but no \`${CONFIG_FILENAME}\`. The Cloudflare Vite plugin no longer reads Wrangler configuration files, so this configuration would be ignored. Run \`npx cf migrate --bundler vite\` to generate \`${CONFIG_FILENAME}\`.`);
|
|
85126
|
+
return;
|
|
85127
|
+
}
|
|
85119
85128
|
const { result, dependencies } = await loadAndParseConfig(configPath, {
|
|
85120
85129
|
isPreview: isPreviewBuild(),
|
|
85121
85130
|
mode: options.mode
|
|
@@ -88386,7 +88395,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
88386
88395
|
//#endregion
|
|
88387
88396
|
//#region ../remote-bindings/dist/index.mjs
|
|
88388
88397
|
var import_undici = require_undici();
|
|
88389
|
-
var version$1 = "0.0.
|
|
88398
|
+
var version$1 = "0.0.51";
|
|
88390
88399
|
var NoDefaultValueProvided = class extends UserError {
|
|
88391
88400
|
constructor() {
|
|
88392
88401
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|
|
@@ -89192,6 +89201,7 @@ function findRemoteSessionAuthError(error$3) {
|
|
|
89192
89201
|
}
|
|
89193
89202
|
async function startRemoteProxySession(bindings, options) {
|
|
89194
89203
|
for (const [name, binding] of Object.entries(bindings ?? {})) if (binding.type === "flagship" && binding.app_id === void 0) throw new UserError(`Flagship binding "${name}" has no \`app_id\` and has not been created, but needs to run remotely. Run \`wrangler flagship apps create\` to create an app.`, { telemetryMessage: "flagship remote binding missing app_id" });
|
|
89204
|
+
if (process.versions.bun) throw new UserError("Remote bindings can't work under Bun, because Bun's `fetch()` ignores the undici `dispatcher` that Miniflare routes them through (https://github.com/oven-sh/bun/issues/39247). Run this using Node.js, or turn remote bindings off.", { telemetryMessage: "remote proxy session under bun" });
|
|
89195
89205
|
options.logger.log(source_default.dim("⎔ Establishing remote connection..."));
|
|
89196
89206
|
initLogger(getInternalLogger(options.logger));
|
|
89197
89207
|
const rawBindings = toRawBindings(bindings);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "2.0.0-beta.v.
|
|
3
|
+
"version": "2.0.0-beta.v.3",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"unenv": "2.0.0-rc.24",
|
|
44
44
|
"ws": "8.21.0",
|
|
45
45
|
"@cloudflare/build-output-utils": "0.9.3",
|
|
46
|
-
"@cloudflare/runtime-types": "0.1.13",
|
|
47
46
|
"@cloudflare/config": "0.27.0",
|
|
48
|
-
"
|
|
49
|
-
"@cloudflare/unenv-preset": "2.16.2"
|
|
47
|
+
"@cloudflare/runtime-types": "0.1.14",
|
|
48
|
+
"@cloudflare/unenv-preset": "2.16.2",
|
|
49
|
+
"miniflare": "5.20261019.1-beta"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@cloudflare/workers-types": "^5.20261019.1",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"typescript": "5.8.3",
|
|
70
70
|
"vite": "8.1.5",
|
|
71
71
|
"vite-legacy": "npm:vite@7.1.12",
|
|
72
|
-
"vitest": "
|
|
73
|
-
"@cloudflare/cli-shared-helpers": "0.2.
|
|
74
|
-
"@cloudflare/
|
|
72
|
+
"vitest": "5.0.4",
|
|
73
|
+
"@cloudflare/cli-shared-helpers": "0.2.7",
|
|
74
|
+
"@cloudflare/remote-bindings": "0.0.51",
|
|
75
|
+
"@cloudflare/containers-shared": "0.23.1",
|
|
76
|
+
"@cloudflare/workers-auth": "0.14.1",
|
|
75
77
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/remote-bindings": "0.0.50",
|
|
77
|
-
"@cloudflare/workers-auth": "0.14.0",
|
|
78
78
|
"@cloudflare/workers-shared": "0.20.1",
|
|
79
79
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
80
|
-
"@cloudflare/workers-utils": "0.47.
|
|
80
|
+
"@cloudflare/workers-utils": "0.47.3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"vite": "^7.0.0 || ^8.0.0"
|