Skip to content

Conversation

@cprussin
Copy link
Collaborator

@cprussin cprussin commented May 14, 2025

Summary

This PR sets up turbopack for local development for apps using the component library. This should result in much faster development rebuilds.

In order to do this, I had to ensure that the component library is getting built with tsc separately from the app code. This is because turbopack does not support extension aliases. This is probably fine as the extension aliases were always a bit of a hack, and I'd been meaning to do the component-library build separately for a long time anyways, as the prior approach would only work assuming that the tsconfig is identical which may not always be true. This issue also required updating all the .js imports to .jsx where appropriate in the component library.

Turbopack also does not support the :export ICSS directive so I also had to make some minor modifications in the few places we were using this.

Rationale

This should significantly speed up local development.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@cprussin cprussin requested a review from a team as a code owner May 14, 2025 18:32
@vercel
Copy link

vercel bot commented May 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 6:55pm

This PR sets up turbopack for local development for apps using the component
library.  This should result in much faster development rebuilds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants