@escape-game-over/atlas 0.1.63 → 0.1.64
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/package.json +1 -1
- package/src/astro/site-routes.ts +14 -1
package/package.json
CHANGED
package/src/astro/site-routes.ts
CHANGED
|
@@ -287,7 +287,20 @@ export function siteRoutes(options: SiteRoutesOptions): AstroIntegration {
|
|
|
287
287
|
// plugin prints as noise.
|
|
288
288
|
updateConfig({
|
|
289
289
|
...config,
|
|
290
|
-
vite: {
|
|
290
|
+
vite: {
|
|
291
|
+
plugins: [noClientRouter()],
|
|
292
|
+
// Atlas ships TypeScript source. Pre-bundled, `astro
|
|
293
|
+
// dev` finds the client entry late, re-bundles it and
|
|
294
|
+
// serves pages a stale copy (504 Outdated Optimize Dep),
|
|
295
|
+
// so every client script fails to load. Served as
|
|
296
|
+
// source, it behaves like the project's own files.
|
|
297
|
+
optimizeDeps: {
|
|
298
|
+
exclude: [
|
|
299
|
+
"@escape-game-over/atlas",
|
|
300
|
+
"@escape-game-over/atlas/client",
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
},
|
|
291
304
|
});
|
|
292
305
|
// Said out loud: a setting changed from under you is worth a
|
|
293
306
|
// line, and reading `astro.config.ts` would otherwise leave you
|