Skip to content

Upgrade all babel dependencies to latest #6652

@cee-chen

Description

@cee-chen

This work is needed in order for Storybook be installed and run alongside our existing toolings (see #6583 (comment)).

Requirement criteria

The following scripts should still work as expected on latest upgrades:

  • yarn start
  • yarn lint
  • yarn test-unit
  • yarn test-cypress-dev
  • yarn test-unit accordion --coverage && yarn test-cypress && yarn combine-test-coverage
  • yarn yo-changelog
  • yarn build-pack
  • npm run release (run up to the 2FA prompt and stop)
  • yarn sync-docs

Dependencies to upgrade

### High lift
- [x] "babel-eslint": "^10.1.0", - **DEPRECATED** - now `@babel/eslint-parser`
- [x] "eslint-plugin-babel": "^5.3.1", - **DEPRECATED** - now `@babel/eslint-plugin`
- [x] "babel-core": "7.0.0-bridge.0", - **unclear if this bridge is still needed**
- [x] "@babel/cli": "^7.10.5", - **upgrade to latest v7.21.x**
- [x] "@babel/core": "^7.11.4", - **upgrade to latest v7.21.x**
### Low lift
- [x] "@babel/plugin-proposal-class-properties": "^7.10.4",
- [x] "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
- [x] "@babel/plugin-syntax-dynamic-import": "^7.8.3",
- [x] "@babel/plugin-transform-async-to-generator": "^7.10.4",
- [x] "@babel/plugin-transform-runtime": "^7.11.0",
### Unknown lift
- [x] Testing all scripts in `scripts/babel`
- [x] "@babel/preset-env": "^7.11.0",
- [x] "@babel/preset-react": "^7.10.4",
- [x] "@babel/preset-typescript": "^7.16.7",
- [x] "babel-loader": "^8.1.0",
- [x] "babel-plugin-add-module-exports": "^1.0.2",
- [x] "babel-plugin-dynamic-import-node": "^2.3.3",
- [x] "babel-plugin-inline-react-svg": "^1.1.1",
- [x] "babel-plugin-istanbul": "^6.0.0",
- [x] "babel-plugin-pegjs-inline-precompile": "^0.1.1", - **N/A, no new releases**
- [x] "babel-template": "^6.26.0", - **migrate to `@babel/template`**

Related PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions