Skip to content

Conversation

@Rohi-stack
Copy link

same file so same absolute path
cache works correctly

resolving every module path to an absolute path before creating an asset, the bundler establishes a stable identity for each file in the dependency graph. Different relative import paths that reference the same file are normalized to a single absolute path, ensuring that the cache consistently returns the same asset instance. This prevents duplicate parsing, guarantees that each module receives a single unique ID, and allows all import edges in the graph to correctly point to the same node.

same file so same absolute path
cache works correctly

resolving every module path to an absolute path before creating an asset, the bundler establishes a stable identity for each file in the dependency graph. Different relative import paths that reference the same file are normalized to a single absolute path, ensuring that the cache consistently returns the same asset instance. This prevents duplicate parsing, guarantees that each module receives a single unique ID, and allows all import edges in the graph to correctly point to the same node.
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.

1 participant