Skip to content

Commit

Permalink
Merge pull request #118 from flatironinstitute/manually-chunk-monaco
Browse files Browse the repository at this point in the history
Move monaco's JS to its own rollup chunk
  • Loading branch information
WardBrian authored Jul 2, 2024
2 parents 4d983cf + eeac55c commit 94614f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ import { configDefaults, coverageConfigDefaults } from "vitest/config";

// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
output: {
manualChunks: {
monaco: ["monaco-editor", "@monaco-editor/react"],
utilities: ["jszip", "@octokit/rest"],
},
},
},
},
test: {
// note for testing: mockReset clears all spies/mocks and resets to empty function,
// while restoreMocks: true calls .mockRestore() thereby clearing spies & mock
Expand Down

0 comments on commit 94614f0

Please sign in to comment.