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

feat: additive graph #211

Merged
merged 6 commits into from
Feb 4, 2023
Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Feb 3, 2023

This change allows adding roots to an existing module graph. This is a step towards allowing us to only have one module graph in the CLI and add to it over time for stuff like dynamic imports.

@dsherret dsherret requested a review from bartlomieju February 3, 2023 22:01
@bartlomieju
Copy link
Member

This change allows adding roots to an existing module graph. This is a step towards allowing us to only have one module graph in the CLI and add to it over time for stuff like dynamic imports.

What about workers? It feels to me like a worker on a separate thread should have a completely different module graph. Does this PR allow this?

@dsherret
Copy link
Member Author

dsherret commented Feb 4, 2023

This change allows adding roots to an existing module graph. This is a step towards allowing us to only have one module graph in the CLI and add to it over time for stuff like dynamic imports.

What about workers? It feels to me like a worker on a separate thread should have a completely different module graph. Does this PR allow this?

Yes. It would just create another module graph like what it does today.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no comments. This refactor makes a lot of sense

@dsherret dsherret merged commit 1b8d01c into denoland:main Feb 4, 2023
@dsherret dsherret deleted the graph_multiple_builds branch February 4, 2023 16:12
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