Skip to content

Upgrade all babel dependencies to latest #6652

Closed

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

Activity

  1. self-assigned this
    on Mar 29, 2023
  2. changed the title [-]Upgrade all babel dependencies to latest[/-] [+][Meta] Upgrade all babel dependencies to latest[/+] on Apr 3, 2023
  3. added
    meta
    on Apr 3, 2023
  4. changed the title [-][Meta] Upgrade all babel dependencies to latest[/-] [+]Upgrade all babel dependencies to latest[/+] on Apr 3, 2023
  5. added and removed
    meta
    on Apr 3, 2023
  6. cee-chen commented on May 25, 2023

    @cee-chen
    ContributorAuthor

    After the last open babel PR merges, this issue can be closed and Storybook can be installed without breaking yarn start/yarn build or our linting. Huzzah!

  7. cee-chen commented on May 25, 2023

    @cee-chen
    ContributorAuthor

    As a side note, babel-jest cannot be upgraded without jest itself being upgraded so I'm going to create a follow-up tech debt issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions