@rsbuild/plugin-react 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for React, integrating features such as JSX
12
12
 
13
13
  ## Documentation
14
14
 
15
- See [Documentation](https://rsbuild.dev/plugins/list/plugin-react).
15
+ See [Documentation](https://rsbuild.rs/plugins/list/plugin-react).
16
16
 
17
17
  ## License
18
18
 
package/dist/index.cjs CHANGED
@@ -77,6 +77,9 @@ for(var __webpack_i__ in (()=>{
77
77
  exclude: [
78
78
  /[\\/]node_modules[\\/]/
79
79
  ],
80
+ resourceQuery: {
81
+ not: /raw/
82
+ },
80
83
  ...options.reactRefreshOptions
81
84
  }
82
85
  ]);
package/dist/index.d.ts CHANGED
@@ -31,7 +31,13 @@ export type PluginReactOptions = {
31
31
  enableProfiler?: boolean;
32
32
  /**
33
33
  * Options passed to `@rspack/plugin-react-refresh`
34
- * @see https://rspack.dev/guide/tech/react#rspackplugin-react-refresh
34
+ * @default
35
+ * {
36
+ * include: [/\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/],
37
+ * exclude: [/[\\/]node_modules[\\/]/],
38
+ * resourceQuery: { not: /raw/ },
39
+ * }
40
+ * @see https://rspack.rs/guide/tech/react#rspackplugin-react-refresh
35
41
  */
36
42
  reactRefreshOptions?: ReactRefreshOptions;
37
43
  /**
package/dist/index.js CHANGED
@@ -37,6 +37,9 @@ let react_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__.createR
37
37
  exclude: [
38
38
  /[\\/]node_modules[\\/]/
39
39
  ],
40
+ resourceQuery: {
41
+ not: /raw/
42
+ },
40
43
  ...options.reactRefreshOptions
41
44
  }
42
45
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,14 +22,14 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rspack/plugin-react-refresh": "~1.4.1",
25
+ "@rspack/plugin-react-refresh": "~1.4.3",
26
26
  "react-refresh": "^0.17.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@rslib/core": "0.6.6",
30
- "@types/node": "^22.14.1",
29
+ "@rslib/core": "0.9.1",
30
+ "@types/node": "^22.15.29",
31
31
  "typescript": "^5.8.3",
32
- "@rsbuild/core": "1.3.10",
32
+ "@rsbuild/core": "1.4.0-beta.0",
33
33
  "@scripts/test-helper": "1.0.1"
34
34
  },
35
35
  "peerDependencies": {
@@ -42,6 +42,7 @@
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rslib build",
45
- "dev": "rslib build --watch"
45
+ "dev": "rslib build --watch",
46
+ "bump": "npx bumpp --no-tag"
46
47
  }
47
48
  }