vite-plugin-php 1.0.65 → 1.0.651
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 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7085,9 +7085,12 @@ function usePHP(cfg = {}) {
|
|
|
7085
7085
|
phpServer.start(viteServer?.config.root);
|
|
7086
7086
|
server.middlewares.use(async (req, res, next) => {
|
|
7087
7087
|
try {
|
|
7088
|
-
if (req.url && ![
|
|
7089
|
-
|
|
7090
|
-
|
|
7088
|
+
if (req.url && ![
|
|
7089
|
+
"/@vite",
|
|
7090
|
+
"/@fs",
|
|
7091
|
+
"/@id/__x00__",
|
|
7092
|
+
"/node_modules"
|
|
7093
|
+
].some((path) => req.url.startsWith(path))) {
|
|
7091
7094
|
req.on("error", (error) => {
|
|
7092
7095
|
throw error;
|
|
7093
7096
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -7071,9 +7071,12 @@ function usePHP(cfg = {}) {
|
|
|
7071
7071
|
phpServer.start(viteServer?.config.root);
|
|
7072
7072
|
server.middlewares.use(async (req, res, next) => {
|
|
7073
7073
|
try {
|
|
7074
|
-
if (req.url && ![
|
|
7075
|
-
|
|
7076
|
-
|
|
7074
|
+
if (req.url && ![
|
|
7075
|
+
"/@vite",
|
|
7076
|
+
"/@fs",
|
|
7077
|
+
"/@id/__x00__",
|
|
7078
|
+
"/node_modules"
|
|
7079
|
+
].some((path) => req.url.startsWith(path))) {
|
|
7077
7080
|
req.on("error", (error) => {
|
|
7078
7081
|
throw error;
|
|
7079
7082
|
});
|