mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 21:52:31 -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: [
|
presets: [
|
||||||
['@babel/env', {targets: {electron: '2.0.7'}}],
|
['@babel/env', {targets: {electron: '3.0.2'}}],
|
||||||
'@babel/react'
|
'@babel/react'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
chunks: 'all'
|
||||||
|
}
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CopyWebpackPlugin([{
|
new CopyWebpackPlugin([{
|
||||||
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
|
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
|
||||||
|
|
Loading…
Reference in a new issue