vite-plugin-vercel 8.0.0 → 8.0.1

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.cjs CHANGED
@@ -233,6 +233,7 @@ async function writeConfig(resolvedConfig, rewrites, overrides, headers) {
233
233
 
234
234
  // src/build.ts
235
235
  var import_fast_glob = __toESM(require("fast-glob"), 1);
236
+ var import_module = require("module");
236
237
  var import_path3 = __toESM(require("path"), 1);
237
238
  var import_esbuild = require("esbuild");
238
239
 
@@ -401,8 +402,11 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
401
402
  }
402
403
  }
403
404
  if (entry.edge) {
405
+ delete options.platform;
406
+ options.external = [...import_module.builtinModules, ...import_module.builtinModules.map((m) => `node:${m}`)];
404
407
  options.conditions = [
405
408
  "edge-light",
409
+ "worker",
406
410
  "browser",
407
411
  "module",
408
412
  "import",
package/dist/index.js CHANGED
@@ -203,6 +203,7 @@ async function writeConfig(resolvedConfig, rewrites, overrides, headers) {
203
203
 
204
204
  // src/build.ts
205
205
  import glob from "fast-glob";
206
+ import { builtinModules } from "module";
206
207
  import path3, { basename } from "path";
207
208
  import { build } from "esbuild";
208
209
 
@@ -371,8 +372,11 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
371
372
  }
372
373
  }
373
374
  if (entry.edge) {
375
+ delete options.platform;
376
+ options.external = [...builtinModules, ...builtinModules.map((m) => `node:${m}`)];
374
377
  options.conditions = [
375
378
  "edge-light",
379
+ "worker",
376
380
  "browser",
377
381
  "module",
378
382
  "import",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vercel",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -25,7 +25,7 @@
25
25
  "peerDependencies": {
26
26
  "vike": "*",
27
27
  "vite": "^4.4 || ^5.0.2",
28
- "@vite-plugin-vercel/vike": "8.0.0"
28
+ "@vite-plugin-vercel/vike": "8.0.1"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@vite-plugin-vercel/vike": {
@@ -37,19 +37,19 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^18.19.31",
40
- "@typescript-eslint/eslint-plugin": "^7.16.0",
41
- "@typescript-eslint/parser": "^7.16.0",
40
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
41
+ "@typescript-eslint/parser": "^7.18.0",
42
42
  "eslint": "^8.57.0",
43
- "tsup": "^8.1.0",
44
- "typescript": "^5.5.3",
45
- "vike": "^0.4.179",
46
- "vite": "^5.3.3",
47
- "@vite-plugin-vercel/vike": "8.0.0"
43
+ "tsup": "^8.2.4",
44
+ "typescript": "^5.5.4",
45
+ "vike": "^0.4.183",
46
+ "vite": "^5.4.0",
47
+ "@vite-plugin-vercel/vike": "8.0.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "@brillout/libassert": "^0.5.8",
51
51
  "@manypkg/find-root": "^2.2.2",
52
- "@vercel/build-utils": "^8.3.1",
52
+ "@vercel/build-utils": "^8.3.6",
53
53
  "@vercel/nft": "^0.27.3",
54
54
  "@vercel/routing-utils": "^3.1.0",
55
55
  "esbuild": "^0.23.0",