alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.83k stars 2.09k forks source link

Fix: align the order and content of custom transformer with webpack #6823

Closed ClarkXia closed 7 months ago

ClarkXia commented 7 months ago

Ensure that custom transformers, when running in rspack mode, are defined after the built-in loaders. This order is crucial because if a custom transformer precedes the built-in loaders, the code passed to the unplugin may differ from what would be passed in webpack mod.