Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@jahredhope/react-loadable-webpack-plugin
Advanced tools
Webpack plugin for creating and reading a react-loadable manifest
A webpack loader to create and read react-loadable compatible manifest files.
react-loadable contains it’s own packaged webpack loader. However some features are not yet available in the packaged version. Once available this package can be deprecated.
PRs, feature requests and bug reports welcome.
$ npm install react-loadable @jahredhope/react-loadable-webpack-plugin
# OR
$ yarn add react-loadable @jahredhope/react-loadable-webpack-plugin
webpack.config.js
const {
ReactLoadablePlugin
} = require("@jahredhope/react-loadable-webpack-plugin");
module.exports = {
// ...
plugins: [
new ReactLoadablePlugin({
filename: "react-loadable.json"
})
]
};
src/render.js
const { getBundles } = require("@jahredhope/react-loadable-webpack-plugin");
// ...
function render({ stats }) {
const modules = [];
const appHtml = ReactDOMServer.renderToString(
<Loadable.Capture report={moduleName => modules.push(moduleName)}>
<App />
</Loadable.Capture>
);
const bundles = getBundles(stats, modules);
return `<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
${scripts.map(src => `<link rel="preload" href=${src} as="script" />`)}
</head>
<body>
<div id="root">${appHtml}</div>
${src.map(
script => `<script src="${src}" type="application/javascript"></script>`
)}
<!-- ... -->
</body>
</html>`;
}
FAQs
Webpack plugin for creating and reading a react-loadable manifest
The npm package @jahredhope/react-loadable-webpack-plugin receives a total of 15 weekly downloads. As such, @jahredhope/react-loadable-webpack-plugin popularity was classified as not popular.
We found that @jahredhope/react-loadable-webpack-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
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.