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(rspack_plugin_javascript): improve provide dependency #7871

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

shulaoda
Copy link
Collaborator

Summary

Related to #7336 and #7422

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@shulaoda shulaoda marked this pull request as draft September 12, 2024 02:40
@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Sep 12, 2024
Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 071fc9a
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66e3e7c4a279530008c8d4cd

@shulaoda shulaoda force-pushed the feat/improve-provide-dependency branch from 90957d9 to 12bbc53 Compare September 12, 2024 03:43
@shulaoda shulaoda marked this pull request as ready for review September 12, 2024 03:43
@shulaoda
Copy link
Collaborator Author

I introduced DependencyRange because some dependencies's span are only used as range and don't require to_loc. This approach reduces memory usage since RealDependencyLocation has an additional source: Option<Arc<dyn SourceLocation>>.

@h-a-n-a h-a-n-a merged commit 3343471 into web-infra-dev:main Sep 13, 2024
28 checks passed
@shulaoda shulaoda deleted the feat/improve-provide-dependency branch September 13, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants