Load babel-polyfill in the bundle entry, before index.js

pull/6625/head
Luke Barnard 2018-04-27 15:12:16 +01:00
parent 9b055171ab
commit c56b54eddd
1 changed files with 3 additions and 6 deletions

View File

@ -8,12 +8,9 @@ if (!og_image_url) og_image_url = 'https://riot.im/app/themes/riot/img/logos/rio
module.exports = { module.exports = {
entry: { entry: {
main: [ // Load babel-polyfill first to avoid issues where some imports (namely react)
// Load this first to avoid issues where some imports (namely react) // are potentially loaded before babel-polyfill.
// potentially before babel-polyfill. "bundle": ["babel-polyfill", "./src/vector/index.js"],
'babel-polyfill',
],
"bundle": "./src/vector/index.js",
"indexeddb-worker": "./src/vector/indexeddb-worker.js", "indexeddb-worker": "./src/vector/indexeddb-worker.js",
// We ship olm.js as a separate lump of javascript. This makes it get // We ship olm.js as a separate lump of javascript. This makes it get