mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #3722 from matrix-org/travis/babel7
[BREAKING] Refactor the entire build process for babel@7 and TypeScript (chunk 1 of many)
This commit is contained in:
commit
38e75aaae0
3
.babelrc
3
.babelrc
@ -5,8 +5,7 @@
|
||||
"targets": {
|
||||
"browsers": [
|
||||
"last 2 versions"
|
||||
],
|
||||
"node": 12
|
||||
]
|
||||
},
|
||||
"modules": "commonjs"
|
||||
}],
|
||||
|
@ -247,5 +247,10 @@ class _MatrixClientPeg {
|
||||
if (!global.mxMatrixClientPeg) {
|
||||
global.mxMatrixClientPeg = new _MatrixClientPeg();
|
||||
}
|
||||
|
||||
// We export both because the syntax is slightly different with
|
||||
// our babel changes. We maintain both for backwards compatibility
|
||||
// and for babel to be happy.
|
||||
// TODO: Convert this to a single export
|
||||
export default global.mxMatrixClientPeg;
|
||||
export const MatrixClientPeg = global.mxMatrixClientPeg;
|
||||
|
Loading…
Reference in New Issue
Block a user