[Bug]: modifying resolve.extensions
in Rspack config object doesn't work
#3410
Labels
🐞 bug
Something isn't working
Version
Details
when using Rsbuild, I noticed that modifying
resolve.extensions
property in Rspack config object doesn't work.Luckily it works when modifying the Rspack config with a function so I it's possible to workaround the problem currently.
But I expected to achieve it by just modifying the object like the docs
Reproduce link
https://codepen.io/mdrobny/pen/KKjJVwN
Reproduce Steps
resolve.extensions
in example rsbuild.config.ts like thisApp.jsx
component insrc
folderrun
rsbuild dev
open website and you can still see content from
App.tsx
. Rsbuild should useApp.jsx
file becausejsx
extension has priority overtsx
but it doesn'tChange rsbuild.config.ts to
rsbuild dev
App JSX
so it workedThe text was updated successfully, but these errors were encountered: