Skip to content

Commit c56b54e

Browse files
committed
Load babel-polyfill in the bundle entry, before index.js
1 parent 9b05517 commit c56b54e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎webpack.config.js‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ if (!og_image_url) og_image_url = 'https://riot.im/app/themes/riot/img/logos/rio
88

99
module.exports = {
1010
entry: {
11-
main: [
12-
// Load this first to avoid issues where some imports (namely react)
13-
// potentially before babel-polyfill.
14-
'babel-polyfill',
15-
],
16-
"bundle": "./src/vector/index.js",
11+
// Load babel-polyfill first to avoid issues where some imports (namely react)
12+
// are potentially loaded before babel-polyfill.
13+
"bundle": ["babel-polyfill", "./src/vector/index.js"],
1714
"indexeddb-worker": "./src/vector/indexeddb-worker.js",
1815

1916
// We ship olm.js as a separate lump of javascript. This makes it get

0 commit comments

Comments
 (0)