feat(packages): POC — migrate to Bun + Nx for faster incremental package/plugin builds #35302
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Note
Bycatch warning: I was annoyed by the lack of license headers, so I added a pre-commit hook to catch that for changed/new files. On CI, that runs on EVERYTHING, and it caught some old files without headers! So you'll see those updates here as well.
This PR updates Superset's frontend build system by combining Bun's fast JavaScript runtime with Nx's intelligent caching, achieving dramatic performance improvements:
Key Changes
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: Every build takes 56s regardless of changes
After: Incremental builds with caching
Performance benchmarks:
TESTING INSTRUCTIONS
Test the build system:
Verify TypeScript error reporting:
Test license compliance:
ADDITIONAL INFORMATION
Notes:
npm run plugins:build
works exactly the same, just fasternpm install
.nx/cache