@lightspeed-js/core 0.3.1 → 0.3.2
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 -0
- package/package.json +1 -1
package/dist/vite.js
CHANGED
|
@@ -5353,6 +5353,8 @@ ${entries.join(`,
|
|
|
5353
5353
|
}
|
|
5354
5354
|
for (const file of await findFragments())
|
|
5355
5355
|
server.watcher.add(file);
|
|
5356
|
+
if (host)
|
|
5357
|
+
return;
|
|
5356
5358
|
const proxied = Object.keys(server.config.server.proxy ?? {});
|
|
5357
5359
|
const isProxied = (pathname) => proxied.some((key) => key.startsWith("^") ? new RegExp(key).test(pathname) : pathname.startsWith(key));
|
|
5358
5360
|
const missing = (res) => {
|
|
@@ -5385,6 +5387,8 @@ ${entries.join(`,
|
|
|
5385
5387
|
});
|
|
5386
5388
|
},
|
|
5387
5389
|
configurePreviewServer(server) {
|
|
5390
|
+
if (host)
|
|
5391
|
+
return;
|
|
5388
5392
|
const ready = buildRouteTable();
|
|
5389
5393
|
server.middlewares.use(async (req, res, next) => {
|
|
5390
5394
|
const url = req.url;
|