
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
component-resolver-webpack
Advanced tools
Webpack plugin that simplifies process of components loading
Webpack plugin that provides simple convention on how to organize components:
The component file should be placed in a directory named as component itself e.g
button.jsx
must be placed insidebutton
directorty:button/button.jsx
.
It allows to shorten require
calls and make them more expressive:
var Button = require('ui/button');
// instead of:
var Button = require('ui/button/button.jsx');
Why not 'ui/button.jsx'
?
Because then you can use directories as module containers. As an example, you can
combine component-resolver-webpack
with
component-css-loader
:
var Button = require('ui/button');
// Single `require` to get React component and style associated with it.
require('ui/button/button.styl');
var Button = require('ui/button/button.jsx');
Directory also may contain tests (Jest-like approach).
Install via npm:
npm install --save-dev component-resolver-webpack
Update webpack config (default: webpack.config.js
):
var webpack = require('webpack');
var ComponentResolverPlugin = require('component-resolver-webpack');
module.exports = {
plugins: [
new webpack.ResolverPlugin([
new ComponentResolverPlugin(
// array of extensions e.g `['js']` (default: `['jsx', 'js']`)
)
])
]
};
You also may want to specify modulesDirectories
in webpack config:
// ...
module.exports = {
// ...
resolve: {
modulesDirectories: [
// It will allow to use path without leading `./` in require
// for directories placed in `app`:
'app'
]
}
}
npm test
For watch mode:
npm run-script autotest
node_modules
)--
FAQs
Webpack plugin that simplifies process of components loading
We found that component-resolver-webpack 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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.