Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to Babel v7 #1048

Merged
merged 7 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

5 changes: 3 additions & 2 deletions .circleci/config.yml
Expand Up @@ -63,9 +63,10 @@ jobs:
command: npm run eslint -- --format junit -o reports/junit/js-lint-results.xml
- run:
name: Run all Jest test suites
command: npm run jest -- --ci -i --testResultsProcessor="jest-junit"
command: npm run jest -- --ci -i --reporters="jest-junit"
environment:
JEST_JUNIT_OUTPUT: reports/junit/jest/js-jest-results.xml
JEST_JUNIT_OUTPUT_NAME: js-jest-results.xml
JEST_JUNIT_OUTPUT_DIR: reports/junit/jest
- store_test_results:
path: reports/junit
- store_artifacts:
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
@@ -1,4 +1,5 @@
module.exports = {
parser: 'babel-eslint',
extends: '@webex/eslint-config-react',
env: {
jest: true,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ tmp.*
reports/*
.python-version
.cache
coverage/
61 changes: 61 additions & 0 deletions babel.config.js
@@ -0,0 +1,61 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: [
'last 2 Chrome major versions',
'last 1 ChromeAndroid major versions',
'last 2 Firefox major versions',
'last 1 FirefoxAndroid major versions',
'last 2 Safari major versions',
'last 3 iOS major versions',
'last 2 Edge major versions',
'last 1 Samsung versions',
'ie >= 11'
]
}
],
'@babel/preset-react'
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: 2
}
],
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-object-rest-spread',
'lodash'
],
env: {
development: {
plugins: [
[
'react-transform',
{
transforms: [
{
transform: 'react-transform-hmr',
imports: ['react'],
locals: ['module']
}
]
}
]
]
},
test: {
retainLines: true,
sourceMaps: 'inline'
}
}
};
1 change: 0 additions & 1 deletion jest.config.json
Expand Up @@ -3,7 +3,6 @@
"<rootDir>/packages/node_modules/"
],
"testPathIgnorePatterns": ["<rootDir>/node_modules/"],
"testURL": "http://localhost",
"transformIgnorePatterns": ["<rootDir>/node_modules/"],
"moduleNameMapper": {
"^.+\\.(css|scss|less)$": "identity-obj-proxy",
Expand Down