vite-plugin-vercel 0.1.7 → 0.2.0

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
@@ -321,6 +321,9 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
321
321
  options.stdin = entry.source;
322
322
  }
323
323
  }
324
+ if (entry.edge) {
325
+ options.conditions = ["edge-light", ...options.conditions ?? []];
326
+ }
324
327
  await (0, import_esbuild.build)(options);
325
328
  await writeVcConfig(resolvedConfig, entry.destination, Boolean(entry.edge));
326
329
  }
@@ -550,5 +553,3 @@ async function getStaticHtmlFiles(src) {
550
553
  function allPlugins() {
551
554
  return [vercelPlugin()];
552
555
  }
553
- // Annotate the CommonJS export names for ESM import in node:
554
- 0 && (module.exports = {});
package/dist/index.js CHANGED
@@ -287,6 +287,9 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
287
287
  options.stdin = entry.source;
288
288
  }
289
289
  }
290
+ if (entry.edge) {
291
+ options.conditions = ["edge-light", ...options.conditions ?? []];
292
+ }
290
293
  await build(options);
291
294
  await writeVcConfig(resolvedConfig, entry.destination, Boolean(entry.edge));
292
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vercel",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -24,18 +24,18 @@
24
24
  "vite": "^4.2.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^16.18.21",
28
- "@typescript-eslint/eslint-plugin": "^5.56.0",
29
- "@typescript-eslint/parser": "^5.56.0",
30
- "eslint": "^8.36.0",
27
+ "@types/node": "^16.18.30",
28
+ "@typescript-eslint/eslint-plugin": "^5.59.5",
29
+ "@typescript-eslint/parser": "^5.59.5",
30
+ "eslint": "^8.40.0",
31
31
  "tsup": "^6.7.0",
32
- "typescript": "^5.0.2",
33
- "vite": "^4.2.1"
32
+ "typescript": "^5.0.4",
33
+ "vite": "^4.3.5"
34
34
  },
35
35
  "dependencies": {
36
36
  "@brillout/libassert": "^0.5.8",
37
- "@vercel/routing-utils": "^2.1.11",
38
- "esbuild": "^0.17.14",
37
+ "@vercel/routing-utils": "^2.2.1",
38
+ "esbuild": "^0.17.19",
39
39
  "fast-glob": "^3.2.12",
40
40
  "zod": "^3.21.4"
41
41
  },