vite-plugin-vercel 11.0.0-beta.19 → 11.0.0-beta.20
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/vite.js +4 -6
- package/package.json +1 -1
package/dist/vite.js
CHANGED
|
@@ -611,9 +611,8 @@ function loaderPlugin(pluginConfig) {
|
|
|
611
611
|
|
|
612
612
|
${getOriginalRequest.toString()}
|
|
613
613
|
|
|
614
|
-
const fn = (
|
|
615
|
-
|
|
616
|
-
return mod.fetch(...args);
|
|
614
|
+
const fn = (r) => {
|
|
615
|
+
return mod.fetch(getOriginalRequest(r));
|
|
617
616
|
};
|
|
618
617
|
|
|
619
618
|
export default fn`;
|
|
@@ -641,9 +640,8 @@ ${getOriginalRequest.toString()}
|
|
|
641
640
|
|
|
642
641
|
if (mod?.fetch) {
|
|
643
642
|
const ori = mod.fetch;
|
|
644
|
-
mod.fetch = (
|
|
645
|
-
|
|
646
|
-
return ori(...args);
|
|
643
|
+
mod.fetch = (r) => {
|
|
644
|
+
return ori(getOriginalRequest(r));
|
|
647
645
|
}
|
|
648
646
|
}
|
|
649
647
|
|