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]: loader 不能匹配上前一个 loader 转换的内容 #1324

Closed
gzzhengbingyi opened this issue Jan 17, 2024 · 2 comments
Closed

[Bug]: loader 不能匹配上前一个 loader 转换的内容 #1324

gzzhengbingyi opened this issue Jan 17, 2024 · 2 comments
Labels
🐞 bug Something isn't working need reproduction

Comments

@gzzhengbingyi
Copy link

Version

mac os
"@rsbuild/core": "^0.3.2",
"@rsbuild/plugin-babel": "^0.3.3",
"@rsbuild/plugin-vue2": "^0.3.2",
"@rsbuild/plugin-vue2-jsx": "^0.3.3",

Details

rspack: {
module: {
rules: [
{
resourceQuery: /blockType=i18n/,
use: ['@xxxx/vue-i18n-loader'], // 内部的 loader
type: 'javascript/auto',
},
{
test: /.csv$/,
use: ['@xxxx/i18n-csv-loader'], // 内部的 loader
type: 'javascript/auto',
},
],
},
},

然后执行的时候 i18n-csv-loader 能够执行
但是经过 i18n-csv-loader 转换后的资源'@/i18n/csv/common/component.csv?vue&type=custom&index=0&blockType=i18n&issuerPath'却不会被'@xxxx/vue-i18n-loader'匹配上

Reproduce link

none

Reproduce Steps

none

@gzzhengbingyi gzzhengbingyi added the 🐞 bug Something isn't working label Jan 17, 2024
Copy link
Contributor

Hello @gzzhengbingyi. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️

@chenjiahan
Copy link
Member

你好,由于缺少复现方式,我们很难帮你定位问题。从当前提供的信息来看,属于自定义的 loader 配置问题,建议你到 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 need reproduction
Projects
None yet
Development

No branches or pull requests

2 participants