File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ if (!og_image_url) og_image_url = 'https://riot.im/app/themes/riot/img/logos/rio
88
99module . 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
You can’t perform that action at this time.
0 commit comments