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]: plugin compiles fine in webpack, but does not work in rspack #7218

Closed
wengjiacheng opened this issue Jul 18, 2024 · 8 comments
Closed
Labels
awaiting more feedback bug Something isn't working

Comments

@wengjiacheng
Copy link

System Info

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.7.10",
"@rsbuild/plugin-vue2": "^0.7.10",

Details

使用skin-utils的插件替换源码中的颜色变量进行换色
在webpack中
image
点击
image
可以换色,在rspack里不可以

Reproduce link

https://github.com/wengjiacheng/rspack-repro

Reproduce Steps

npm run dev:rspack || dev:webpack
浏览器localhost:8080
点击按钮

@wengjiacheng wengjiacheng added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jul 18, 2024
@chenjiahan chenjiahan changed the title [Bug]: 插件在webpack下编译没问题,在rspack下编译不起作用 [Bug]: plugin compiles fine in webpack, but does not work in rspack Jul 18, 2024
@chenjiahan
Copy link
Member

I can't find the code in the provided repo, can you check it?

image

@wengjiacheng
Copy link
Author

image
image

@wengjiacheng
Copy link
Author

@chenjiahan 你好请问还需要提供哪些信息吗?

@wengjiacheng
Copy link
Author

@chenjiahan 这个demo是之前打包报错做demo,当时只是解决了打包问题, 没有注意打包效果,是之后发现打包后不生效,所以就直接用了这个demo,所以现实提交是几个月前的

@wengjiacheng
Copy link
Author

@chenjiahan 你好这个问题有进展吗?还需要提供哪些信息吗?

@chenjiahan
Copy link
Member

我在这个 demo 里安装了最新版的 Rspack,没有复现你说的问题,建议你升级试一下

@wengjiacheng
Copy link
Author

@chenjiahan 好的,我在项目里升级试一下

@xc2 xc2 added awaiting more feedback and removed pending triage The issue/PR is currently untouched. labels Aug 15, 2024
@xc2
Copy link
Collaborator

xc2 commented Aug 15, 2024

@wengjiacheng any further questions?

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

No branches or pull requests

4 participants