mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -05:00
Tell Babel to target Electron 3.0.2; enable chunk splitting
This commit is contained in:
parent
751406722d
commit
1de7228a8c
1 changed files with 6 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue