Merge pull request #12102 from vector-im/travis/babel-skinning
Update babel targets
This commit is contained in:
commit
daf6aaaf30
2 changed files with 22 additions and 23 deletions
|
@ -1,25 +1,23 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"presets": [
|
"presets": [
|
||||||
["@babel/preset-env", {
|
["@babel/preset-env", {
|
||||||
"targets": {
|
"targets": [
|
||||||
"browsers": [
|
"last 2 Chrome versions", "last 2 Firefox versions", "last 2 Safari versions"
|
||||||
"last 2 versions"
|
],
|
||||||
]
|
}],
|
||||||
}
|
"@babel/preset-typescript",
|
||||||
}],
|
"@babel/preset-flow",
|
||||||
"@babel/preset-typescript",
|
"@babel/preset-react"
|
||||||
"@babel/preset-flow",
|
],
|
||||||
"@babel/preset-react"
|
"plugins": [
|
||||||
],
|
["@babel/plugin-proposal-decorators", {decoratorsBeforeExport: true}],
|
||||||
"plugins": [
|
"@babel/plugin-proposal-export-default-from",
|
||||||
["@babel/plugin-proposal-decorators", {"legacy": true}],
|
"@babel/plugin-proposal-numeric-separator",
|
||||||
"@babel/plugin-proposal-export-default-from",
|
"@babel/plugin-proposal-class-properties",
|
||||||
"@babel/plugin-proposal-numeric-separator",
|
"@babel/plugin-proposal-object-rest-spread",
|
||||||
"@babel/plugin-proposal-class-properties",
|
"@babel/plugin-transform-flow-comments",
|
||||||
"@babel/plugin-proposal-object-rest-spread",
|
"@babel/plugin-syntax-dynamic-import",
|
||||||
"@babel/plugin-transform-flow-comments",
|
"@babel/plugin-transform-runtime"
|
||||||
"@babel/plugin-syntax-dynamic-import",
|
]
|
||||||
"@babel/plugin-transform-runtime"
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -193,6 +193,7 @@
|
||||||
"afterSign": "scripts/electron_afterSign.js"
|
"afterSign": "scripts/electron_afterSign.js"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
"modulePathIgnorePatterns": ["<rootDir>/electron_app"],
|
||||||
"testEnvironment": "jest-environment-jsdom-fourteen",
|
"testEnvironment": "jest-environment-jsdom-fourteen",
|
||||||
"testMatch": [
|
"testMatch": [
|
||||||
"<rootDir>/test/**/*-test.js"
|
"<rootDir>/test/**/*-test.js"
|
||||||
|
|
Loading…
Reference in a new issue