-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): unregister in-process ts transpilers when projectGraph is created #19187
fix(core): unregister in-process ts transpilers when projectGraph is created #19187
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
78047b3
to
6a8193a
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1868b1a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
@@ -84,6 +85,8 @@ export async function retrieveWorkspaceFiles( | |||
'get-workspace-files:end' | |||
); | |||
|
|||
unregisterPluginTSTranspiler(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the transpiler not just get re-registered when creating the dependencies? It seems like this should be done at the end of createProjectGraphAsync
or similar as well.
6a8193a
to
08f5621
Compare
08f5621
to
ab1e2f7
Compare
ab1e2f7
to
7289c26
Compare
7289c26
to
df0ae47
Compare
…-is-off-and-swc-nodecore-is-used
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
When running
CI=true
we register ts transpilers in the main nx process. Usually this registration happens in the daemon, and has no effect on other processes that get spawned from the main nx process. But when registered in the main process, all child processes get the same registered transpiler.This causes issues with
NX_BATCH_MODE=true
with jest for Nx Plugin tests because jest tried to load jest configuration files (which are in .ts), and when reading these files swc will transpile these to a format that is not supported in jest.Expected Behavior
When we're done reading the workspace files, unregister transpilers so that child processes do not have their
require
functions patched.Related Issue(s)
Fixes #