vite-plugin-vercel 5.0.2 → 5.0.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.cjs CHANGED
@@ -410,12 +410,12 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
410
410
  options.format = "esm";
411
411
  } else if (options.format === "esm") {
412
412
  options.banner = {
413
- js: `import { createRequire } from 'node:module';
414
- import path from 'node:path';
415
- import url from 'node:url';
416
- const require = createRequire(import.meta.url);
417
- const __filename = url.fileURLToPath(import.meta.url);
418
- const __dirname = path.dirname(__filename);
413
+ js: `import { createRequire as VPV_createRequire } from "node:module";
414
+ import { fileURLToPath as VPV_fileURLToPath } from "node:url";
415
+ import { dirname as VPV_dirname } from "node:path";
416
+ const require = VPV_createRequire(import.meta.url);
417
+ const __filename = VPV_fileURLToPath(import.meta.url);
418
+ const __dirname = VPV_dirname(__filename);
419
419
  `
420
420
  };
421
421
  }
package/dist/index.js CHANGED
@@ -380,12 +380,12 @@ async function buildFn(resolvedConfig, entry, buildOptions) {
380
380
  options.format = "esm";
381
381
  } else if (options.format === "esm") {
382
382
  options.banner = {
383
- js: `import { createRequire } from 'node:module';
384
- import path from 'node:path';
385
- import url from 'node:url';
386
- const require = createRequire(import.meta.url);
387
- const __filename = url.fileURLToPath(import.meta.url);
388
- const __dirname = path.dirname(__filename);
383
+ js: `import { createRequire as VPV_createRequire } from "node:module";
384
+ import { fileURLToPath as VPV_fileURLToPath } from "node:url";
385
+ import { dirname as VPV_dirname } from "node:path";
386
+ const require = VPV_createRequire(import.meta.url);
387
+ const __filename = VPV_fileURLToPath(import.meta.url);
388
+ const __dirname = VPV_dirname(__filename);
389
389
  `
390
390
  };
391
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vercel",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",