injectManifest mode
You can build a custom SW by passing {mode: "injectManifest"} to the config. The only required field (except mode) is srcFile which should point to your SW. The plugin uses rsbuild to build the SW, so typescript is supported out of the box.
Here's the minimal example:
Notice that workbox-precaching should be installed.