-
Notifications
You must be signed in to change notification settings - Fork 120
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
[Bug]: extensionAlias is undefined when use webpack provider #3548
Comments
Hello @beliefgp. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️ |
@chenjiahan 这个主要是发生在 @rsbuild/core 和 @rsbuid/webpack 两边版本不同步的情况下,比如这次的问题: 按现在的使用方式:
@rsbuild/webpack 对 @rsbuild/core 的依赖应该放在 peer 里面,而不是 dep 里 |
Actually |
是的,使用的 @rsbuild/core,但因为一些原因,还是需要使用 webpack,所以引入了 @rsbuid/webpack,但目前 @rsbuid/webpack 并没有提供 cli 指令,也不是作为独立包使用的,从现在的使用上来讲,它的定位类似于 rsbuild 的插件。 所以 @rsbuid/webpack 不应该把 @rsbuild/core 放在 dep 里,而应该是放在 peerDep 里。 |
Ok, I will adjust the dependency. Please note that |
Version
Details
https://github.com/web-infra-dev/rsbuild/blob/main/packages/core/src/plugins/resolve.ts#L48
extensionAlias is undefined when use webpack provider,
use rspack, it is ok
plugin-webpack has its own rsbuild dependency, should it be changed to peer?
https://github.com/web-infra-dev/rsbuild/blob/main/packages/compat/webpack/package.json#L31
Reproduce link
xxx
Reproduce Steps
npx rsbuild build
The text was updated successfully, but these errors were encountered: