You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// src/VueLoader15PitchFixPlugin.tsvarVueLoader15PitchFixPlugin=class{constructor(){this.name="VueLoader15PitchFixPlugin";}apply(compiler){const{ NormalModule }=compiler.webpack;compiler.hooks.compilation.tap(this.name,(compilation)=>{constisExpCssOn=compilation.compiler.options?.experiments?.css;if(!isExpCssOn)return;NormalModule.getCompilationHooks(compilation).loader.tap({name: this.name,stage: Number.MAX_SAFE_INTEGER},(loaderContext)=>{if(// the related issue only happens for <style>/[?&]type=style/.test(loaderContext.resourceQuery)&&// the fix should be applied before `pitch` phase completed.// once `pitch` phase completed, vue-loader will remove its pitcher loader.// /[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test(// loaderContext.loaders?.[0]?.path || ""// )loaderContext.loaders?.some(loader=>/[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test(loader.path))){constseen=/* @__PURE__ */newSet();constloaders=[];for(constloaderofloaderContext.loaders||[]){constidentifier=typeofloader==="string" ? loader : loader.path+loader.query;if(!seen.has(identifier)){seen.add(identifier);loaders.push(loader);}}loaderContext.loaders=loaders;}});});}};
Reproduce link
xxxxx
Reproduce Steps
rsbuild build
The text was updated successfully, but these errors were encountered:
As the issue was labelled with need reproduction, but no response in 5 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, see Why reproductions are required.
Version
Details
File was processed with these loaders:
* rsbuild-test/node_modules/vue-loader/dist/pitcher.js??ruleSet[1].rules[0].use[0]
* rsbuild-test/node_modules/@rspack/core/dist/builtin-plugin/css-extract/loader.js
* commonjs|rsbuild-test/node_modules/@rsbuild/core/compiled/css-loader/index.js??clonedRuleSet-2.use[1]
* builtin:lightningcss-loader??clonedRuleSet-2.use[2]
* rsbuild-test/node_modules/@rspack/core/dist/builtin-plugin/css-extract/loader.js
* rsbuild-test/node_modules/@rsbuild/core/compiled/css-loader/index.js??clonedRuleSet-2.use[1]
* builtin:lightningcss-loader??clonedRuleSet-2.use[2]
* rsbuild-test/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]
目前 vue2,vue3 版本都会出现这个问题,我尝试改了 plugin-vue2 的实现,但发现好像现在重置 loader 没有效果了,还是重置之前的 loaders。
Reproduce link
xxxxx
Reproduce Steps
rsbuild build
The text was updated successfully, but these errors were encountered: