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
// vue-loader pitcher.jsif(cssLoaderIndex>-1){// if inlined, ignore any loaders after css-loader and replace w/ inline// loaderconstlightningcssLoaderIndex=loaders.findIndex((loader)=>{return/builtin:lightningcss-loader/.test(loader.path);});constinjectLoaders=lightningcssLoaderIndex>-1 ? [...loaders.splice(lightningcssLoaderIndex,lightningcssLoaderIndex+1)] : [];constafterLoaders=query.inline!=null
? [styleInlineLoaderPath]
: loaders.slice(0,cssLoaderIndex+1);constbeforeLoaders=loaders.slice(cssLoaderIndex+1);injectLoaders.push(stylePostLoaderPath);returngenProxyModule([...afterLoaders, ...injectLoaders, ...beforeLoaders],context,!!query.module||query.inline!=null,query.lang||'css');}
I've tried to adjust the order with the loader, but the stylePostLoader will be triggered repeatedly after lightningcss-loader, causing the style to be abnormal.
I also want to use normalModuleFactory.hooks.beforeLoaders to adjust the loader order, but rspack doesn't expose this hooks.
Or is there another way to bypass this issue?
The text was updated successfully, but these errors were encountered:
LightningCSS can't handle some special cases currently. So i want to move the lightningcss-loader after stylePostLoader:
I've tried to adjust the order with the loader, but the stylePostLoader will be triggered repeatedly after lightningcss-loader, causing the style to be abnormal.
I also want to use normalModuleFactory.hooks.beforeLoaders to adjust the loader order, but rspack doesn't expose this hooks.
Or is there another way to bypass this issue?
The text was updated successfully, but these errors were encountered: