diff --git a/babel.config.js b/babel.config.js index 8f40b20c..59746098 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,25 +1,23 @@ module.exports = { - "sourceMaps": true, - "presets": [ - ["@babel/preset-env", { - "targets": { - "browsers": [ - "last 2 versions" - ] - } - }], - "@babel/preset-typescript", - "@babel/preset-flow", - "@babel/preset-react" - ], - "plugins": [ - ["@babel/plugin-proposal-decorators", {"legacy": true}], - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread", - "@babel/plugin-transform-flow-comments", - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-transform-runtime" - ] + "sourceMaps": true, + "presets": [ + ["@babel/preset-env", { + "targets": [ + "last 2 Chrome versions", "last 2 Firefox versions", "last 2 Safari versions" + ], + }], + "@babel/preset-typescript", + "@babel/preset-flow", + "@babel/preset-react" + ], + "plugins": [ + ["@babel/plugin-proposal-decorators", {decoratorsBeforeExport: true}], + "@babel/plugin-proposal-export-default-from", + "@babel/plugin-proposal-numeric-separator", + "@babel/plugin-proposal-class-properties", + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-transform-flow-comments", + "@babel/plugin-syntax-dynamic-import", + "@babel/plugin-transform-runtime" + ] }; diff --git a/package.json b/package.json index 31c8614b..004d6d7c 100644 --- a/package.json +++ b/package.json @@ -193,6 +193,7 @@ "afterSign": "scripts/electron_afterSign.js" }, "jest": { + "modulePathIgnorePatterns": ["/electron_app"], "testEnvironment": "jest-environment-jsdom-fourteen", "testMatch": [ "/test/**/*-test.js"