Rspack & Rsbuild Plugin
Obfuscate JavaScript in an Rspack or Rsbuild build
Add one plugin to the Rspack config, or to tools.rspack in Rsbuild, and every production JavaScript asset is protected after Rspack’s minifier and before the content hash is computed. The free options run on your own machine with no account.
Tested 2026-10-29
Real builds, same result
Rspack 2.3 and Rsbuild 2.3, production mode with the built-in minifier, javascriptobfuscator-com 0.5.0, no account. The protected bundle printed exactly what the unprotected one printed.
HookprocessAssets, after minification
Hashes[contenthash] follows protected file
Source mapsRemoved for protected assets