
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
rollup-plugin-web-worker-loader
Advanced tools
Rollup plugin to bundle web worker code to later be instantiated as a Worker
Rollup plugin to bundle web worker code to later be instantiated as a Worker.
Preserves the code so other plugins can modify it and/or transpile it.
Can be
configured to inline a sourcemap.
yarn add rollup-plugin-web-worker-loader --dev
Add the plugin to your rollup configuration:
import webWorkerLoader from 'rollup-plugin-web-worker-loader';
export default {
entry: 'src/index.js',
plugins: [
webWorkerLoader(),
],
format: 'esm',
};
Bundle the worker code using the prefix web-worker: in your imports:
import DataWorker from 'web-worker:./DataWorker';
const dataWorker = new DataWorker();
dataWorker.postMessage('Hello World!');
The plugin responds to the following configuration options:
webWorkerLoader({
sourcemap: boolean, // should a source map be included in the final output
})
importFAQs
Rollup plugin to handle Web Workers
The npm package rollup-plugin-web-worker-loader receives a total of 12,876 weekly downloads. As such, rollup-plugin-web-worker-loader popularity was classified as popular.
We found that rollup-plugin-web-worker-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.