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

[Bug]: webpack插件在rspack下引用,无法改变chunk的依赖关系,在webpack下可以 #1525

Closed
wengjiacheng opened this issue Feb 6, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@wengjiacheng
Copy link

wengjiacheng commented Feb 6, 2024

Version

System:
    OS: macOS 13.3.1
    CPU: 2.5 GHz Intel Core i7
    Memory: 16 GB 2133 MHz LPDDR3
  Browsers:
    Chrome:  120.0.6099.109
  npmPackages:
    "@rsbuild/core": "^0.2.15",
    "@rsbuild/plugin-vue2": "^0.2.15",

Details

有个需求是css文件过大需要拆分,原项目里使用的是css-split-webpack-plugin这个插件,这个插件给出的方法是支持webpack5, 我使用插件给的办法在webpack5中做了尝试也是可以正常打包的,
而且css文件的引入也是正常的
image
上面两个css引用在是他拆分后打包的结果

然后我在rsbuild构建的项目下也引用了这个插件
image
这是我的配置,文件可以看到是打包出来了,但是并没有被引用
image
image
插件中修改文件的方式
image

Reproduce link

NONE

Reproduce Steps

npm run build

@wengjiacheng wengjiacheng added the 🐞 bug Something isn't working label Feb 6, 2024
@chenjiahan
Copy link
Member

chenjiahan commented Feb 7, 2024

可以先升级 Rsbuild 到最新版(0.4.0)试一下,如果不行的话,可能是 Rspack 未兼容这个插件,可以到 Rspack 仓库提个 issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants