split polyfills into separate bundle

This commit is contained in:
Гурьянов Алексей Александрович
2018-06-24 16:14:46 +04:00
parent f473c2a659
commit 7088accf70
7 changed files with 488 additions and 281 deletions
+8 -2
View File
@@ -1,9 +1,15 @@
module.exports = {
presets: [
['env', {
targets: ['> 1%', 'android >= 4.4.4', 'ios >= 9'],
targets: {
browsers: ['> 1%', 'android >= 4.4.4', 'ios >= 9', 'IE >= 11']
},
useBuiltIns: true,
}],
],
plugins: ['transform-object-rest-spread', ['transform-react-jsx', { 'pragma': 'h' }]],
plugins: [
'syntax-dynamic-import',
'transform-object-rest-spread',
['transform-react-jsx', { 'pragma': 'h' }]
],
};