Skip to content

Commit

Permalink
Disable shared runtime chunk for plugins
Browse files Browse the repository at this point in the history
Otherwise we get very weird errors that only happen if both indico and
plugins are built in production mode. It's not clear what exactly is
causing this problem, but this fixes it - apparently without any
negative side effects - so let's hope we can just keep it like this and
it doesn't introduce any new weird bugs.
  • Loading branch information
ThiefMaster committed Oct 28, 2021
1 parent ef52ea0 commit d1ac193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export function webpackDefaults(env, config, bundles, isPlugin = false) {
},
mode: currentEnv,
optimization: {
runtimeChunk: {name: 'common-runtime'},
runtimeChunk: isPlugin ? false : {name: 'common-runtime'},
splitChunks: {
cacheGroups: isPlugin
? {}
Expand Down

0 comments on commit d1ac193

Please sign in to comment.