Upgrade to babel@7 and support TypeScript

See https://github.com/matrix-org/matrix-react-sdk/pull/3292

Like react-sdk#3292, this fixes the couple source files which mix imports and module exports (they can't be mixed anymore).
This commit is contained in:
Travis Ralston 2019-08-08 13:30:11 -06:00
parent 76606256a2
commit 7b89893645
6 changed files with 1041 additions and 707 deletions

View file

@ -22,7 +22,7 @@ import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
import { _t } from 'matrix-react-sdk/lib/languageHandler';
module.exports = React.createClass({
export default React.createClass({
displayName: 'VectorAuthFooter',
statics: {
replaces: 'AuthFooter',

View file

@ -22,7 +22,7 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
* This is identical to `CustomServerDialog` except for replacing "this app"
* with "Riot".
*/
module.exports = React.createClass({
export default React.createClass({
displayName: 'VectorCustomServerDialog',
statics: {
replaces: 'CustomServerDialog',