Skip to content

Commit 04cfa84

Browse files
committed
Put monaco-editor in a separate chunk
1 parent 5aacda6 commit 04cfa84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export default ({ mode }) => {
4545
filename: "dist/stats.html", // will be saved in project's root
4646
}),
4747
],
48+
build: {
49+
rollupOptions: {
50+
output: { manualChunks: { "monaco-editor": ["monaco-editor"] } },
51+
},
52+
},
4853
base: process.env.VITE_PUBLIC_PATH,
4954
resolve: {
5055
alias: {

0 commit comments

Comments
 (0)