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

Investigate new build process with more modern tooling. #4616

Closed
5 tasks done
Tracked by #4014
apburnes opened this issue Oct 7, 2024 · 1 comment
Closed
5 tasks done
Tracked by #4014

Investigate new build process with more modern tooling. #4616

apburnes opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@apburnes
Copy link
Contributor

apburnes commented Oct 7, 2024

Look at improving and simplifying the build process of Pages app and admin.

Acceptance Criteria

  • Identify a group of available tools to test.

    • Rspack
    • Webpack (No change)
    • Parcel
  • Answer the following:

    • Does it improve CI and local env build times?
      • Rspack improves initial bundle time by ~5 seconds
    • Does it improve developer experience?
      • Rspack slightly improves initial build time
    • Does it simplify the configuration across applications and environments?
      • Rspack is a minimal effort lift from webpack, a large effort from rollup
      • Parcel is a large effort lift from webpack, a medium effort from rollup
    • Does it have a proven track record and strong OSS community?
      • Rspack has hit v1
    • Is it better to do nothing?
      • With minimal bundling improvements for the amount of input, the best option is to stay as is.
      • To improve dev on local, separating the API and frontend watch commands will greatly improve developer experience. When an update happens to the API, the frontend is automatically rebuilt taking ~20 second rebuild. When updating the frontend, hot module replacement updates the frontend in milliseconds.

Recommendation

The other investigated build tools provide no significant performance upgrades and the added tasks/time to implement them are not worth investing in at this time. To improve the dev experience, we will be decoupling the API and frontend build process on code change. See #4649

@apburnes apburnes self-assigned this Oct 7, 2024
@apburnes apburnes changed the title Investigate new build process with more modern tooling like Vite Investigate new build process with more modern tooling. Oct 10, 2024
@apburnes
Copy link
Contributor Author

apburnes commented Nov 4, 2024

Work to be completed by #4649

@apburnes apburnes closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant