@rspack/plugin-react-refresh
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0
{ | ||
"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). |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
83287
16
1
91