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).pull/10543/head
parent
76606256a2
commit
7b89893645
6 changed files with 1076 additions and 742 deletions
@ -1,21 +1,21 @@ |
||||
{ |
||||
"presets": [ |
||||
"react", |
||||
"es2015", |
||||
"es2016" |
||||
"@babel/preset-react", |
||||
["@babel/preset-env", { |
||||
"modules": false, |
||||
"targets": {"browsers": ["last 2 versions"]} |
||||
}], |
||||
"@babel/preset-flow", |
||||
"@babel/preset-typescript" |
||||
], |
||||
"plugins": [ |
||||
[ |
||||
"transform-builtin-extend", |
||||
{ |
||||
"globals": ["Error"] |
||||
} |
||||
], |
||||
"transform-class-properties", |
||||
"transform-object-rest-spread", |
||||
"transform-async-to-bluebird", |
||||
"transform-runtime", |
||||
"add-module-exports", |
||||
"syntax-dynamic-import" |
||||
"babel-plugin-add-module-exports", |
||||
"@babel/plugin-proposal-numeric-separator", |
||||
"@babel/plugin-proposal-class-properties", |
||||
"@babel/plugin-proposal-object-rest-spread", |
||||
"@babel/plugin-transform-flow-comments", |
||||
"@babel/plugin-transform-async-to-generator", |
||||
"@babel/plugin-transform-runtime", |
||||
"@babel/plugin-syntax-dynamic-import" |
||||
] |
||||
} |
||||
|
@ -0,0 +1,15 @@ |
||||
{ |
||||
"compilerOptions": { |
||||
"target": "esnext", |
||||
"moduleResolution": "node", |
||||
"allowJs": true, |
||||
"noEmit": false, |
||||
"strict": false, |
||||
"isolatedModules": true, |
||||
"esModuleInterop": true |
||||
}, |
||||
"include": [ |
||||
"src/*.ts", |
||||
"src/**/*.ts" |
||||
] |
||||
} |
Loading…
Reference in new issue