
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
webpack-inject-entry-plugin
Advanced tools
A webpack plugin to inject code into the bundle
A webpack plugin to inject a filepath into a webpack entry. This can be used to build webpack plugins that inject code into the bundle.
Compatible with both Webpack 4 and 5.
Usage in a webpack plugin:
import InjectEntryPlugin from "webpack-inject-entry-plugin";
export class MyPlugin {
constructor(options) {
this.options = options;
}
apply(compiler) {
new InjectEntryPlugin({
entry: "main",
filepath: "./path/to/my/entry/file.js",
}).apply(compiler);
}
}
Usage in webpack.config.js:
const InjectEntryPlugin = require("webpack-inject-entry-plugin").default;
module.exports = {
plugins: [
new InjectEntryPlugin({
entry: "main",
filepath: "./service-worker.js",
}),
],
};
yarn add webpack-inject-entry-plugin| Name | Description | Type |
|---|---|---|
| entry | The name of the webpack entry. | string |
| filepath | The filepath to the source code to inject. | string |
PR's and issues welcomed! For more guidance check out CONTRIBUTING.md
See the project's MIT License.
FAQs
A webpack plugin to inject code into the bundle.
The npm package webpack-inject-entry-plugin receives a total of 464 weekly downloads. As such, webpack-inject-entry-plugin popularity was classified as not popular.
We found that webpack-inject-entry-plugin demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.