diff options
-rw-r--r-- | libraries/classes/Header.php | 2 | ||||
-rw-r--r-- | webpack.config.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libraries/classes/Header.php b/libraries/classes/Header.php index 327b615a59..b0a469987c 100644 --- a/libraries/classes/Header.php +++ b/libraries/classes/Header.php @@ -127,7 +127,7 @@ class Header */ private function addDefaultScripts(): void { - // Localised strings + $this->scripts->addFile('runtime.js'); $this->scripts->addFile('vendor/jquery/jquery.min.js'); $this->scripts->addFile('vendor/jquery/jquery-migrate.js'); $this->scripts->addFile('vendor/sprintf.js'); diff --git a/webpack.config.js b/webpack.config.js index 83bfe6936d..78c4847fda 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -94,7 +94,9 @@ module.exports = [ output: { filename: '[name].js', path: path.resolve(__dirname, 'js/dist'), - iife: false, + }, + optimization: { + runtimeChunk: 'single', }, externals: { jquery: 'jQuery', |