vite-plugin-vercel 11.0.0-beta.17 → 11.0.0-beta.19
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 -4
- package/package.json +1 -1
package/dist/vite.js
CHANGED
|
@@ -612,7 +612,7 @@ function loaderPlugin(pluginConfig) {
|
|
|
612
612
|
${getOriginalRequest.toString()}
|
|
613
613
|
|
|
614
614
|
const fn = (...args) => {
|
|
615
|
-
Object.assign(args[0], getOriginalRequest(
|
|
615
|
+
Object.assign(args[0], getOriginalRequest(args[0]));
|
|
616
616
|
return mod.fetch(...args);
|
|
617
617
|
};
|
|
618
618
|
|
|
@@ -642,7 +642,7 @@ ${getOriginalRequest.toString()}
|
|
|
642
642
|
if (mod?.fetch) {
|
|
643
643
|
const ori = mod.fetch;
|
|
644
644
|
mod.fetch = (...args) => {
|
|
645
|
-
Object.assign(args[0], getOriginalRequest(
|
|
645
|
+
Object.assign(args[0], getOriginalRequest(args[0]));
|
|
646
646
|
return ori(...args);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -797,8 +797,8 @@ function getConfig(pluginConfig) {
|
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function wrapRouteInParentheses(route) {
|
|
800
|
-
if (!route.
|
|
801
|
-
route.
|
|
800
|
+
if (!route.src || !route.dest || route.src.match(/^\(.*\)$/) || route.src.match(/^\^\(.*\)\$$/)) return;
|
|
801
|
+
route.src = `(${route.src})`;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
//#endregion
|