-
Notifications
You must be signed in to change notification settings - Fork 49.8k
[compiler][be] Test runner (snap) now uses tsup bundled plugin #32758
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
Conversation
This file contains hidden or 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
mofeiZ
added a commit
that referenced
this pull request
Mar 26, 2025
Followup to #32758. This moves playground to use the tsup bundled plugin instead of webpack-built `babel-plugin-react-compiler`
Currently, `babel-plugin-react-compiler` is bundled with (almost) all external dependencies. This is because babel traversal and ast logic is not forward-compatible. Since `babel-plugin-react-compiler` needs to be compatible with babel pipelines across a wide semvar range, we (1) set this package's babel dependency to an early version and (2) inline babel libraries into our bundle. A few other packages in `react/compiler` depend on the compiler. This PR moves `snap`, our test fixture compiler and evaluator, to use the bundled version of `babel-plugin-react-compiler`. This decouples the babel version used by `snap` with the version used by `babel-plugin-react-compiler`, which means that `snap` now can test features from newer babel versions (see #32742).
mofeiZ
added a commit
that referenced
this pull request
Mar 26, 2025
Followup to #32758. This moves playground to use the tsup bundled plugin instead of webpack-built `babel-plugin-react-compiler`
poteto
approved these changes
Mar 26, 2025
mofeiZ
added a commit
that referenced
this pull request
Mar 26, 2025
Followup to #32758. This moves playground to use the tsup bundled plugin instead of webpack-built `babel-plugin-react-compiler`
mofeiZ
added a commit
that referenced
this pull request
Mar 26, 2025
Followup to #32758. This moves playground to use the tsup bundled plugin instead of webpack-built `babel-plugin-react-compiler`. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32759). * __->__ #32759 * #32758
github-actions bot
pushed a commit
that referenced
this pull request
Mar 26, 2025
Currently, `babel-plugin-react-compiler` is bundled with (almost) all external dependencies. This is because babel traversal and ast logic is not forward-compatible. Since `babel-plugin-react-compiler` needs to be compatible with babel pipelines across a wide semvar range, we (1) set this package's babel dependency to an early version and (2) inline babel libraries into our bundle. A few other packages in `react/compiler` depend on the compiler. This PR moves `snap`, our test fixture compiler and evaluator, to use the bundled version of `babel-plugin-react-compiler`. This decouples the babel version used by `snap` with the version used by `babel-plugin-react-compiler`, which means that `snap` now can test features from newer babel versions (see #32742). --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32758). * #32759 * __->__ #32758 DiffTrain build for [33999c4](33999c4)
github-actions bot
pushed a commit
that referenced
this pull request
Mar 26, 2025
Followup to #32758. This moves playground to use the tsup bundled plugin instead of webpack-built `babel-plugin-react-compiler`. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32759). * __->__ #32759 * #32758 DiffTrain build for [2541146](2541146)
This was referenced Mar 27, 2025
mofeiZ
added a commit
that referenced
this pull request
Mar 28, 2025
Accidentally broke this when migrating our test runner to use the bundled build #32758 The fix is pretty simple. File watcher should listen for changes in `packages/babel-plugin-react-compiler` instead of `cwd`, which is now `packages/snap`.
mofeiZ
added a commit
that referenced
this pull request
Mar 28, 2025
Accidentally broke this when migrating our test runner to use the bundled build #32758 The fix is pretty simple. File watcher should listen for changes in `packages/babel-plugin-react-compiler` instead of `cwd`, which is now `packages/snap`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Currently,
babel-plugin-react-compileris bundled with (almost) all external dependencies. This is because babel traversal and ast logic is not forward-compatible. Sincebabel-plugin-react-compilerneeds to be compatible with babel pipelines across a wide semvar range, we (1) set this package's babel dependency to an early version and (2) inline babel libraries into our bundle.A few other packages in
react/compilerdepend on the compiler. This PR movessnap, our test fixture compiler and evaluator, to use the bundled version ofbabel-plugin-react-compiler. This decouples the babel version used bysnapwith the version used bybabel-plugin-react-compiler, which means thatsnapnow can test features from newer babel versions (see #32742).Stack created with Sapling. Best reviewed with ReviewStack.