-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**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](https://github.com/toomuchdesign/babel-timing) 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 3. Removed the webpack config used for the `--performance` behaviour 4. 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.
- Loading branch information
1 parent
b3d324c
commit bfadc2a
Showing
6 changed files
with
54 additions
and
2,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- feat: Remove `--performance` option from `yarn rw build` (#10453) by @Josh-Walker-GM | ||
|
||
This change removes the `--performance` flag from the `yarn rw build` command. It will no longer be available to use and the CLI will no longer accept this flag being passed in. | ||
|
||
Additionally, the associated webpack config (`@redwoodjs/core/config/webpack.perf.js`) has been removed so it can no longer be imported if you were doing so. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.