New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rspack/plugin-react-refresh

Package Overview
Dependencies
Maintainers
0
Versions
559
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/plugin-react-refresh - npm Package Compare versions

Comparing version 1.0.0-beta.5 to 1.0.0

6

package.json
{
"name": "@rspack/plugin-react-refresh",
"version": "1.0.0-beta.5",
"version": "1.0.0",
"repository": "https://github.com/rspack-contrib/rspack-plugin-react-refresh",

@@ -31,5 +31,3 @@ "license": "MIT",

"@biomejs/biome": "^1.8.3",
"@rspack/core": "1.0.0-beta.3",
"@rspack/test-tools": "1.0.0-beta.3",
"@rspack/dev-server": "1.0.0-beta.3",
"@rspack/core": "1.0.0-beta.4",
"@types/node": "^20.14.13",

@@ -36,0 +34,0 @@ "@types/jest": "29.5.12",

@@ -8,2 +8,8 @@ <picture>

<p>
<a href="https://www.npmjs.com/package/@@rspack/plugin-react-refresh?activeTab=readme"><img src="https://img.shields.io/npm/v/@@rspack/plugin-react-refresh?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a>
<a href="https://npmcharts.com/compare/@@rspack/plugin-react-refresh?minimal=true"><img src="https://img.shields.io/npm/dm/@@rspack/plugin-react-refresh.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
<a href="https://github.com/web-infra-dev/rspack/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" /></a>
</p>
React refresh plugin for [Rspack](https://github.com/web-infra-dev/rspack).

@@ -33,4 +39,4 @@

```js
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
const isDev = process.env.NODE_ENV === 'development';
const ReactRefreshPlugin = require("@rspack/plugin-react-refresh");
const isDev = process.env.NODE_ENV === "development";

@@ -44,3 +50,3 @@ module.exports = {

// ...
mode: isDev ? 'development' : 'production',
mode: isDev ? "development" : "production",
module: {

@@ -51,7 +57,7 @@ rules: [

use: {
loader: 'builtin:swc-loader',
loader: "builtin:swc-loader",
options: {
jsc: {
parser: {
syntax: 'ecmascript',
syntax: "ecmascript",
jsx: true,

@@ -82,4 +88,8 @@ },

## Credits
Thanks to the [react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin) created by [@pmmmwh](https://github.com/pmmmwh), which inspires implement this plugin.
## License
Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
`@rspack/plugin-react-refresh` is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc