Skip to content

Commit d291a7c

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 4d02d28 + 5c722f3 commit d291a7c

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎src/vector/index.js‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ limitations under the License.
1717

1818
'use strict';
1919

20-
// for ES6 stuff like startsWith() that Safari doesn't handle
21-
// and babel doesn't do by default
22-
// Note we use this, as well as the babel transform-runtime plugin
23-
// since transform-runtime does not cover instance methods
24-
// such as "foobar".includes("foo") which bits of our library
25-
// code use, but the babel transform-runtime plugin allows the
26-
// regenerator runtime to be injected early enough in the process
27-
// (it can't be here as it's too late: the alternative is to put
28-
// the babel-polyfill as the first 'entry' in the webpack config).
29-
// https://babeljs.io/docs/plugins/transform-runtime/
30-
require('babel-polyfill');
31-
3220
// Require common CSS here; this will make webpack process it into bundle.css.
3321
// Our own CSS (which is themed) is imported via separate webpack entry points
3422
// in webpack.config.js

‎webpack.config.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +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-
"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"],
1214
"indexeddb-worker": "./src/vector/indexeddb-worker.js",
1315

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

0 commit comments

Comments
 (0)