@@ -52,4 +52,43 @@ export default defineNuxtConfig({
5252 debug : ( process . env . ENV === 'dev' || process . env . ENV === 'local' ) ,
5353 environment : process . env . ENV || 'unknown' ,
5454 } ,
55- } )
55+ vite : {
56+ server : {
57+ allowedHosts : [
58+ 'workspaces.local' ,
59+ ] ,
60+ } ,
61+ optimizeDeps : {
62+ // Pre-bundle these dependencies to avoid reloads during development:
63+ include : [
64+ '@osmcha/maplibre-adiff-viewer' ,
65+ '@osmcha/osmchange-parser' ,
66+ '@sindresorhus/slugify' ,
67+ '@vue/devtools-core' ,
68+ '@vue/devtools-kit' ,
69+ '@zip.js/zip.js' ,
70+ 'ajv' , // CJS
71+ 'ajv-formats' , // CJS
72+ 'bootstrap-vue-next' ,
73+ 'bootstrap-vue-next/components/BAlert' ,
74+ 'bootstrap-vue-next/components/BApp' ,
75+ 'bootstrap-vue-next/components/BBadge' ,
76+ 'bootstrap-vue-next/components/BButton' ,
77+ 'bootstrap-vue-next/components/BCard' ,
78+ 'bootstrap-vue-next/components/BContainer' ,
79+ 'bootstrap-vue-next/components/BDropdown' ,
80+ 'bootstrap-vue-next/components/BFormInput' ,
81+ 'bootstrap-vue-next/components/BListGroup' ,
82+ 'bootstrap-vue-next/components/BModal' ,
83+ 'bootstrap-vue-next/components/BPopover' ,
84+ 'bootstrap-vue-next/composables/useModal' ,
85+ 'dayjs' , // CJS
86+ 'dayjs/plugin/relativeTime' , // CJS
87+ 'maplibre-gl' , // CJS
88+ 'papaparse' , // CJS
89+ 'vue-qrcode' ,
90+ 'vue3-toastify' ,
91+ ] ,
92+ } ,
93+ } ,
94+ } ) ;
0 commit comments