Skip to content

Conversation

@nathanwhit
Copy link
Member

Fixes #19764.

Interaction w/ non-statically-analyzable paths might be problematic, maybe we flag this? Though I think we'll have that problem with most solutions involving bundling/slimming down node_modules

@nathanwhit nathanwhit requested a review from dsherret May 16, 2025 18:10
@dsherret
Copy link
Member

Interaction w/ non-statically-analyzable paths might be problematic, maybe we flag this?

Yeah, I think it should be an opt-in flag so that it works by default and maybe doesn't work with an optimization.

// we'll flatten to remove any custom registries later
let mut packages = npm_resolver
.resolution()
.subset(reqs)
Copy link
Member

Choose a reason for hiding this comment

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

We'll need to think of something for when there's a node_modules directory.

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.

deno compile binaries should not include @types/node in the npm virtual filesystem

2 participants