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

feat: Remove --performance option from yarn rw build #10453

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

Josh-Walker-GM
Copy link
Collaborator

Problem
This PR removes the --performance flag from the yarn rw build command. This also removes the associated logic, webpack config, and its associated dependency.

Specifically babel-timing. The GitHub repo has not been committed to in 3 years. The constraints it adds to resolving other dependencies are potentially holding back security-related dependency upgrades.

Changes

  1. Removed the --performance flag and the logic performed when the flag was passed
  2. Removed the webpack config used for the --performance behaviour
  3. Removed the babel-timing dependency

Notes
It is important to take into account the usage of this command when we consider removing it. From looking at our anonymised telemetry this flag has been used less than a dozen times in the last 6 months. Where it has been used it was used in projects that are using vite - the results of this flag are related to webpack builds not vite so this would be misleading/useless in this case anyway.

@Josh-Walker-GM Josh-Walker-GM added the release:breaking This PR is a breaking change label Apr 14, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the next-release-major milestone Apr 14, 2024
@Josh-Walker-GM Josh-Walker-GM self-assigned this Apr 14, 2024
@Josh-Walker-GM Josh-Walker-GM marked this pull request as ready for review April 19, 2024 01:57
@Josh-Walker-GM Josh-Walker-GM merged commit bfadc2a into main Apr 19, 2024
46 checks passed
@Josh-Walker-GM Josh-Walker-GM deleted the jgmw/cli-remove-build-perf-option branch April 19, 2024 02:23
@Josh-Walker-GM
Copy link
Collaborator Author

I spoke with @Tobbe and we agreed to merge this for now. When the time comes to release this in the next major we have an opportunity to re-evaluate if needed.

dac09 added a commit that referenced this pull request Apr 19, 2024
…g-gen-mw-p2

* 'main' of github.com:redwoodjs/redwood:
  chore(tests): add use location typetests to prevent regressions (#10474)
  feat: Remove `--performance` option from `yarn rw build` (#10453)
  fix(cli): await async prettier functions (#10478)
  chore(crwa): Fix `ts-to-js` script (#10476)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:breaking This PR is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant