Updated Vite configuration: defined globalThis, adjusted optimizeDeps, and enabled eager loading with query params for import.meta.glob.
This commit is contained in:
2 files changed
+15
-3
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import.meta.glob([
|
||||
'../images/**',
|
||||
]);
|
||||
import.meta.glob([ '../images/**' ], {
|
||||
eager: true,
|
||||
query: '?url'
|
||||
});
|
||||
import './bootstrap';
|
||||
import './echo';
|
||||
import './volt';
|
||||
|
||||
@@ -11,4 +11,15 @@ export default defineConfig({
|
||||
refresh: true,
|
||||
}),
|
||||
],
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
},
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user