Skip to content
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(comp loading) - fix issues with components <> envs loading with esm deps #9397

Merged
merged 4 commits into from
Dec 22, 2024

Conversation

GiladShoham
Copy link
Member

@GiladShoham GiladShoham commented Dec 22, 2024

Proposed Changes

This PR fixes issues with install / compile / load components and envs especially when there are workspaces with ESM envs that have nested dependencies in the same workspace that need to compile to esm as well.
For example:
MyCustomEnv -> MyCustomCompiler -> MyNestedDep
all 3 components are in the workspace, and all must be compiled to esm to load properly.
Before this change we were compiling MyCustomCompiler to esm and then the MyCustomEnv then we tried to load the MyCustomEnv but it failed because MyNestedDep was compiled using the default env (to cjs).
With this PR we build a complete dependencies graph of the envs before we compile and load.

@GiladShoham GiladShoham merged commit 47e4843 into master Dec 22, 2024
10 checks passed
@GiladShoham GiladShoham deleted the envs-loading-esm-deps-envs branch December 22, 2024 14:27
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