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(runtime): add rspack version #5310

Merged
merged 5 commits into from
Jan 16, 2024
Merged

feat(runtime): add rspack version #5310

merged 5 commits into from
Jan 16, 2024

Conversation

LingyuCoder
Copy link
Collaborator

@LingyuCoder LingyuCoder commented Jan 11, 2024

Summary

Add rspack version:

  • Add __rspack_version__ api to get current rspack version in runtime
  • Manually specific version value by experiments.rspackFuture.bundlerInfo.version
  • Use experiments.rspackFuture.bundlerInfo.force=true|string[] to inject runtime module even when user do not use it, this feature is useful for debugging

Test Plan

  • Add packages/rspack/tests/configCases/version

Require Documentation?

  • No
  • Yes, the corresponding rspack-website PR is __

@github-actions github-actions bot added release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack. labels Jan 11, 2024
@hardfist
Copy link
Contributor

!canary

Copy link
Contributor

0.5.0-canary-60fb3c1-20240116030241

@KyrieLii
Copy link
Member

LGTM 🫡

@LingyuCoder LingyuCoder merged commit 2e031f5 into main Jan 16, 2024
25 checks passed
@LingyuCoder LingyuCoder deleted the feat/rspack-version branch January 16, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need documentation Create a tracking issue in rspack-website release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants