Commit 3d9ed2b4 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'mg-dedupe-monaco-chunks' into 'master'

Explicitly define monaco vendor chunk in webpack

See merge request gitlab-org/gitlab!30032
parents 8f28e774 d4ce3603
---
title: Improve cacheability of monaco-editor code
merge_request: 30032
author:
type: performance
......@@ -260,6 +260,14 @@ module.exports = {
chunks: 'initial',
minChunks: autoEntriesCount * 0.9,
}),
monaco: {
priority: 15,
name: 'monaco',
chunks: 'initial',
test: /[\\/]node_modules[\\/]monaco-editor[\\/]/,
minChunks: 2,
reuseExistingChunk: true,
},
vendors: {
priority: 10,
chunks: 'async',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment