[Bug]: require("@rspack/core").version incorrectly returns the "webpackVersion"
pushkargupta9807 opened this issue · comments
pushkargupta9807 commented
System Info
N/A
Details
need to add the rspack version info for telemetry purposes. However the below code incorrectly returns the "webpackVersion" and not the "version" property.
The following code returns version as "5.75.0" instead of 0.6.2
const {version} = require("@rspack/core")
Reproduce link
No response
Reproduce Steps
Please refer to details section above.
hardfist commented
use require('@rspack/core').rspackVersion instead, version
is used for compatibility for webpack plugin