Skip to content

Commit 60c24e6

Browse files
reuse getDevCompatibilityDate instead of porting getWorkerdCompatibilityDate
1 parent f284171 commit 60c24e6

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

packages/wrangler/src/autoconfig/c3-vendor/helpers.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

packages/wrangler/src/autoconfig/frameworks/analog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { updateStatus } from "@cloudflare/cli";
55
import { blue } from "@cloudflare/cli/colors";
66
import * as recast from "recast";
77
import semiver from "semiver";
8+
import { getDevCompatibilityDate } from "../../utils/compatibility-date";
89
import { mergeObjectProperties, transformFile } from "../c3-vendor/codemod";
9-
import { getWorkerdCompatibilityDate } from "../c3-vendor/helpers";
1010
import { Framework, getInstalledPackageVersion } from ".";
1111
import type { ConfigurationOptions, ConfigurationResults } from ".";
1212

@@ -46,7 +46,7 @@ async function updateViteConfig(projectPath: string) {
4646
throw new Error("Could not find Vite config file to modify");
4747
}
4848

49-
const compatDate = await getWorkerdCompatibilityDate();
49+
const compatDate = getDevCompatibilityDate(undefined);
5050

5151
updateStatus(`Updating configuration in ${blue(viteConfigPath)}`);
5252

0 commit comments

Comments
 (0)