Merge upstream/main into pr/mapillary-layer

Upstream took share token '2' for fire perimeters, so Street Level moves to
'3'. mapillary-js joins upstream's optimizeDeps include list instead of
overriding it; catalog and registry tests count the new upstream layers.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Said TurkseverandClaude Fable 5.1 committed 2026-09-25 17:58:27 +01:00
commit 9ba6f96d87
204 files changed
+24525 -314

No files matched your search

+18 -4
View File
@@ -10,10 +10,28 @@ export function createBrowserViteConfig({
mapillaryToken,
host = 'localhost',
port = 4173,
command,
} = {}) {
return {
plugins: [cesium(), applicationHtmlPlugin(), ...plugins],
...(publicDir === undefined ? {} : { publicDir }),
// A production build must not clean the dependency cache a running dev
// server is still serving optimized module URLs from.
...(command === 'build' ? { cacheDir: 'node_modules/.vite-build' } : {}),
optimizeDeps: {
// First reached through the SDR worker or a dynamic import. Pre-bundle
// them at startup so first use cannot invalidate already-transformed
// URLs with Vite's "Outdated Optimize Dep" 504 response.
include: [
'@jtarrio/signals/demod/demodulator.js',
'@jtarrio/signals/demod/modes.js',
'@jtarrio/webrtlsdr/rtlsdr.js',
'egm96-universal',
// MapillaryJS is loaded on demand the first time a street-level
// image is opened.
'mapillary-js',
],
},
server: {
host: host || 'localhost',
port: parseInt(port, 10) || 4173,
@@ -38,10 +56,6 @@ export function createBrowserViteConfig({
mapillaryToken ?? '',
),
},
// MapillaryJS is loaded on demand the first time a street-level image is
// opened. Pre-bundle it so that first dynamic import never triggers a
// dev-server re-optimization (which answers in-flight requests with 504).
optimizeDeps: { include: ['mapillary-js'] },
build: { chunkSizeWarningLimit: 1500 },
};
}