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
In the migration doc, there is a section that explicitly says that we can remove the TerserPlugin because by default SwcJsMinimizerRspackPlugin is configured.
As far as I can see, this is not true.
Looking at the code of SwcJsMinimizerRspackPlugin, especially here, I see that before process the file it gets automatically discarded if it doesn't contain the .js extension.
Even defining test or include doesn't resolve due to this. I had to migrate back to terser.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the migration doc, there is a section that explicitly says that we can remove the
TerserPluginbecause by defaultSwcJsMinimizerRspackPluginis configured.As far as I can see, this is not true.
Looking at the code of
SwcJsMinimizerRspackPlugin, especially here, I see that before process the file it gets automatically discarded if it doesn't contain the.jsextension.Even defining
testorincludedoesn't resolve due to this. I had to migrate back to terser.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions