
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
hoist-peers-webpack-resolve-plugin
Advanced tools
use hoisting dep's peerDependencies even though already existing in dep's node_modules
use hoisting dep's peerDependencies even though already existing in dep's node_modules
English | 简体中文
npm i hoist-peers-webpack-resolve-plugin --save-dev
// webpack.config.js
// ...
const { HoistPeersWebpackResolvePlugin } = require('hoist-peers-webpack-resolve-plugin');
module.exports = {
// ...
resolve: {
// ...
plugins: [
// ...
new HoistPeersWebpackResolvePlugin({ deps: ['your-npm-link-dep-name'] })
]
},
// ...
}
// webpack.config.js
// ...
const Config = require('webpack-chain');
const { HoistPeersWebpackResolvePlugin } = require('hoist-peers-webpack-resolve-plugin');
// ...
const config = new Config();
// ...
config.resolve
.plugin('HoistPeersWebpackResolvePlugin')
.use(HoistPeersWebpackResolvePlugin, [{ deps: ['@apaas/common'] }]);
// ...
module.exports = config.toConfig();
Tips: more options see webpack-chain.
string[]true new HoistPeersWebpackResolvePlugin({ deps: ['lodash'] });
objectfalse new HoistPeersWebpackResolvePlugin({
deps: ['lodash'],
{
symlinks: true,
modules: [path.join(__dirname, './node_modules')],
roots: [path.join(__dirname)],
}
});
booleantrue (if in webpack v4)string[]true (if in webpack v4)string[]true (if in webpack v4)FAQs
use hoisting dep's peerDependencies even though already existing in dep's node_modules
We found that hoist-peers-webpack-resolve-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
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.