From 1de7228a8c0592b57bd0736f9987b117ec0464e6 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Sat, 13 Oct 2018 01:09:45 -0700 Subject: [PATCH] Tell Babel to target Electron 3.0.2; enable chunk splitting --- webpack.renderer.additions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack.renderer.additions.js b/webpack.renderer.additions.js index 1a737ea..92a64a1 100644 --- a/webpack.renderer.additions.js +++ b/webpack.renderer.additions.js @@ -29,13 +29,18 @@ module.exports = { }] ], presets: [ - ['@babel/env', {targets: {electron: '2.0.7'}}], + ['@babel/env', {targets: {electron: '3.0.2'}}], '@babel/react' ] } } ] }, + optimization: { + splitChunks: { + chunks: 'all' + } + }, plugins: [ new CopyWebpackPlugin([{ from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),