Commit ca33bcbf authored by Lukas Eipert's avatar Lukas Eipert

Create new webpack chunk for graphql

When we reduced our main.js bundle size, it seems like apollo and
graphql and related dependencies got included multiple times into
different chunks. By manually defining a "graphql" chunk we can increase
cacheability.
parent 27318298
......@@ -278,6 +278,14 @@ module.exports = {
chunks: 'initial',
minChunks: autoEntriesCount * 0.9,
}),
graphql: {
priority: 16,
name: 'graphql',
chunks: 'all',
test: /[\\/]node_modules[\\/][^\\/]*(immer|apollo|graphql|zen-observable)[^\\/]*[\\/]/,
minChunks: 2,
reuseExistingChunk: true,
},
monaco: {
priority: 15,
name: 'monaco',
......
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