maps components
This commit is contained in:
@@ -32,6 +32,20 @@ const viteServerConfig = (): Plugin => ({
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit(), viteServerConfig()],
|
||||
|
||||
// @openmeteo/weather-map-layer is linked from ../../open-meteo/weather-map-layer
|
||||
// (a file: dependency), so allow Vite to serve files from the shared Projects
|
||||
// root and keep a single maplibre-gl instance across drizzli and the layer.
|
||||
server: {
|
||||
fs: { allow: ['../..'] }
|
||||
},
|
||||
resolve: {
|
||||
dedupe: ['maplibre-gl']
|
||||
},
|
||||
optimizeDeps: {
|
||||
// these ship WASM and must not be pre-bundled by esbuild
|
||||
exclude: ['@openmeteo/file-reader', '@openmeteo/file-format-wasm']
|
||||
},
|
||||
|
||||
test: {
|
||||
expect: { requireAssertions: true },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user