Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@parcel/transformer-react-refresh-wrap
Advanced tools
@parcel/transformer-react-refresh-wrap is a Parcel transformer plugin that enables React Fast Refresh, a feature that allows you to get near-instant feedback for changes in your React components without losing component state.
Enable React Fast Refresh
This code snippet demonstrates how to enable React Fast Refresh in a Parcel bundler configuration. By adding the @parcel/transformer-react-refresh-wrap as an asset type for JavaScript files, you can leverage the fast refresh capabilities in your React project.
module.exports = function (bundler) {
bundler.addAssetType('js', require.resolve('@parcel/transformer-react-refresh-wrap'));
};
react-refresh is a library that provides the core implementation for React Fast Refresh. It is often used in conjunction with bundlers like Webpack to enable fast refresh capabilities. Compared to @parcel/transformer-react-refresh-wrap, react-refresh is more low-level and requires additional configuration to integrate with a bundler.
react-refresh-webpack-plugin is a Webpack plugin that integrates React Fast Refresh into the Webpack build process. It provides a more seamless experience for enabling fast refresh in Webpack projects. While @parcel/transformer-react-refresh-wrap is designed specifically for Parcel, react-refresh-webpack-plugin serves the same purpose for Webpack users.
FAQs
Unknown package
We found that @parcel/transformer-react-refresh-wrap demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.