Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit c0ac005

Browse files
bump vite to 6.0.0-beta.8
1 parent 4bdc0a8 commit c0ac005

File tree

3 files changed

+45
-37
lines changed

3 files changed

+45
-37
lines changed

packages/vite-plugin-cloudflare/src/cloudflare-environment.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -140,28 +140,6 @@ export function createCloudflareEnvironmentOptions(
140140
createEnvironment(name, config) {
141141
return new CloudflareDevEnvironment(name, config);
142142
},
143-
optimizeDeps: {
144-
// Note: ssr pre-bundling is opt-in, and we need to enabled it by setting noDiscovery to false
145-
noDiscovery: false,
146-
exclude: [
147-
...cloudflareBuiltInModules,
148-
...builtinModules.concat(builtinModules.map((m) => `node:${m}`)),
149-
],
150-
esbuildOptions: {
151-
resolveExtensions: [
152-
'.mjs',
153-
'.js',
154-
'.mts',
155-
'.ts',
156-
'.jsx',
157-
'.tsx',
158-
'.json',
159-
'.cjs',
160-
'.cts',
161-
'.ctx',
162-
],
163-
},
164-
},
165143
},
166144
build: {
167145
createEnvironment(name, config) {
@@ -178,7 +156,29 @@ export function createCloudflareEnvironmentOptions(
178156
external: [...cloudflareBuiltInModules],
179157
},
180158
},
181-
webCompatible: true,
159+
optimizeDeps: {
160+
// Note: ssr pre-bundling is opt-in, and we need to enabled it by setting noDiscovery to false
161+
noDiscovery: false,
162+
exclude: [
163+
...cloudflareBuiltInModules,
164+
...builtinModules.concat(builtinModules.map((m) => `node:${m}`)),
165+
],
166+
esbuildOptions: {
167+
resolveExtensions: [
168+
'.mjs',
169+
'.js',
170+
'.mts',
171+
'.ts',
172+
'.jsx',
173+
'.tsx',
174+
'.json',
175+
'.cjs',
176+
'.cts',
177+
'.ctx',
178+
],
179+
},
180+
},
181+
keepProcessEnv: true,
182182
} satisfies vite.EnvironmentOptions,
183183
options.overrides ?? {},
184184
);

pnpm-lock.yaml

Lines changed: 21 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ packages:
66
catalog:
77
'@cloudflare/workers-types': ^4.20240919.0
88
'typescript': ^5.6.2
9-
'vite': '6.0.0-beta.4'
9+
'vite': '6.0.0-beta.8'
1010
'wrangler': '^3.80.4'

0 commit comments

Comments
 (0)