Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In its Webpack config Gatsby specifies a
commons
chunk where it puts every module that is used by every pages/templates. The specific config is: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/webpack.config.js#L598-L603.In addition there is also
shared
chunks which dynamically regroups every module used by at least two pages/templates. The config is: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/webpack.config.js#L605-L620.Hence the question: why do we need both? Isn't the
commons
chunk a special case of ashared
chunk which concerns every pages/templates? Is there something I don't understand and which explains the special case?Beta Was this translation helpful? Give feedback.
All reactions