Skip to content

Commit d39adf3

Browse files
committed
fix(dashboard): update Vite configuration to ignore specific Monaco editor chunks for optimized caching
1 parent ead10e0 commit d39adf3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dashboard/vite.config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ export default defineConfig({
148148
workbox: {
149149
navigateFallback: '/index.html',
150150
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
151+
// Monaco is loaded lazily in editor dialogs, so its largest chunks
152+
// should stay network-fetched instead of bloating the app shell precache.
153+
globIgnores: ['statics/editor.api*.js', 'statics/ts.worker*.js'],
151154
skipWaiting: true,
152155
clientsClaim: true,
153156
runtimeCaching: [

0 commit comments

Comments
 (0)