Skip to content

Conversation

@jbroma
Copy link
Member

@jbroma jbroma commented Jul 2, 2025

Summary

Closes #1153

This PR introduces high‑performance build transforms by pairing Babel with SWC, enabling parallelizable pipelines while preserving full Babel compatibility.

This loader offers the most balanced approach to transpiling, achieveing the best performance in real-world React Native projects and will be promoted to the default way of transforming JS files.

  • - added BabelSwcLoader, imported as @callstack/repack/babel-swc-loader
  • - added BabelLoader, imported as @callstack/repack/babel-loader
  • - added a pitch phase to ReanimatedLoader to prevent running it when @callstack/repack/babel-swc-loader is present in the configuration

Test plan

  • - testers work
  • - closed tests with canary release from this PR

@changeset-bot
Copy link

changeset-bot bot commented Jul 2, 2025

🦋 Changeset detected

Latest commit: 3514d37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack Major
@callstack/repack-plugin-nativewind Major
@callstack/repack-plugin-expo-modules Major
@callstack/repack-plugin-reanimated Major
@callstack/repack-dev-server Major
@callstack/repack-init Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
repack-website Ready Ready Preview Comment Aug 18, 2025 6:58pm

@jbroma
Copy link
Member Author

jbroma commented Aug 7, 2025

@jbroma jbroma changed the title feat: experimental hybrid transpilation pipeline feat: parallel-friendly babelLoader & babelSwcLoader Aug 11, 2025
@jbroma jbroma marked this pull request as ready for review August 18, 2025 18:58
@jbroma jbroma merged commit d41d7a3 into main Aug 19, 2025
6 checks passed
@jbroma jbroma deleted the feat/custom-babel-loader branch August 19, 2025 08:18
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.

Errors when using babel-loader during compilation

2 participants