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 +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
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
|
|
414
|
-
import
|
|
415
|
-
import
|
|
416
|
-
const require =
|
|
417
|
-
const __filename =
|
|
418
|
-
const __dirname =
|
|
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
|
|
384
|
-
import
|
|
385
|
-
import
|
|
386
|
-
const require =
|
|
387
|
-
const __filename =
|
|
388
|
-
const __dirname =
|
|
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
|
}
|