web-infra-dev / rspack

A fast Rust-based web bundler 🦀️

Home Page:https://rspack.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: require("@rspack/core").version incorrectly returns the "webpackVersion"

pushkargupta9807 opened this issue · comments

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.

image

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.

use require('@rspack/core').rspackVersion instead, version is used for compatibility for webpack plugin