
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@aaroon/workbox-rspack-plugin
Advanced tools
An rspack plugin to use workbox in rspack. Both GenerateSW and InjectManifest are supported. And all the options are the same as the official workbox-webpack-plugin. Currently, it passes all the tests from the official workbox-webpack-plugin, and should be stable for general uses. If you find anything wrong, feel free to open an issue.
@rspack/core@^0.5.6
Or
@rsbuild/core@^0.4.11
npm i -D @aaroon/workbox-rspack-plugin
Or
pnpm i -D @aaroon/workbox-rspack-plugin
yarn add -D @aaroon/workbox-rspack-plugin
import { GenerateSW, InjectManifest } from '@aaroon/workbox-rspack-plugin'
/**
* @type import('@rspack/cli').Configuration}
*/
export default {
plugins: [
new GenerateSW({
// options
}),
// or
new InjectManifest({
// options
})
]
}
If you're using Rsbuild, use it in tools.rspack.plugins:
import { defineConfig } from '@rsbuild/core'
import { GenerateSW, InjectManifest } from '@aaroon/workbox-rspack-plugin'
export default defineConfig({
tools: {
rspack: {
plugins: [
new GenerateSW({
// options
}),
// or
new InjectManifest({
// options
})
]
}
}
})
Same as workbox-webpack-plugin.
Changelog can be found here.
Most of the code comes from Google's workbox repo, I just make it compatible with Rspack.
If you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository.
Thank you.
FAQs
An Rspack plugin to use workbox
The npm package @aaroon/workbox-rspack-plugin receives a total of 34,710 weekly downloads. As such, @aaroon/workbox-rspack-plugin popularity was classified as popular.
We found that @aaroon/workbox-rspack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.