Skip to content

Commit

Permalink
pref: optimize bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 14, 2021
1 parent 86b739c commit 219d9bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/slidev/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ export async function build(
},
},
],
build: {
rollupOptions: {
output: {
manualChunks: {
motion: ['@vueuse/motion'],
},
},
},
},
}),
)

Expand All @@ -61,6 +70,7 @@ export async function build(
rollupOptions: {
output: {
manualChunks: {

jsonWorker: ['monaco-editor/esm/vs/language/json/json.worker'],
cssWorker: ['monaco-editor/esm/vs/language/css/css.worker'],
htmlWorker: ['monaco-editor/esm/vs/language/html/html.worker'],
Expand Down

0 comments on commit 219d9bf

Please sign in to comment.