Merge pull request #3761 from matrix-org/travis/babel7-wp-es6-export
Convert CommonJS exports to ES6 exports
This commit is contained in:
commit
59f608ffd6
159 changed files with 745 additions and 717 deletions
|
@ -35,7 +35,7 @@ import {getAddressType} from "./UserAddress";
|
|||
* @returns {Promise} which resolves to the room id, or null if the
|
||||
* action was aborted or failed.
|
||||
*/
|
||||
function createRoom(opts) {
|
||||
export default function createRoom(opts) {
|
||||
opts = opts || {};
|
||||
if (opts.spinner === undefined) opts.spinner = true;
|
||||
|
||||
|
@ -139,5 +139,3 @@ function createRoom(opts) {
|
|||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = createRoom;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue