Updated Vite configuration: defined globalThis, adjusted optimizeDeps, and enabled eager loading with query params for import.meta.glob.

This commit is contained in:
kor-elf committed 2026-10-23 20:31:51 +05:00
1 parent 646f3ee21a
commit 253cfebbef
2 files changed
+15 -3

No files matched your search

+4 -3
View File
@@ -1,6 +1,7 @@
import.meta.glob([
'../images/**',
]);
import.meta.glob([ '../images/**' ], {
eager: true,
query: '?url'
});
import './bootstrap';
import './echo';
import './volt';
+11
View File
@@ -11,4 +11,15 @@ export default defineConfig({
refresh: true,
}),
],
define: {
global: 'globalThis',
},
optimizeDeps: {
esbuildOptions: {
define: {
global: 'globalThis',
},
},
},
});