@rsbuild/plugin-react 1.3.3 → 1.3.4

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/dist/index.cjs CHANGED
@@ -88,7 +88,7 @@ for(var __webpack_i__ in (()=>{
88
88
  /[\\/]node_modules[\\/]/
89
89
  ],
90
90
  resourceQuery: {
91
- not: /raw/
91
+ not: /^\?raw$/
92
92
  },
93
93
  ...options1.reactRefreshOptions
94
94
  }
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export type PluginReactOptions = {
35
35
  * {
36
36
  * include: [/\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/],
37
37
  * exclude: [/[\\/]node_modules[\\/]/],
38
- * resourceQuery: { not: /raw/ },
38
+ * resourceQuery: { not: /^\?raw$/ },
39
39
  * }
40
40
  * @see https://rspack.rs/guide/tech/react#rspackplugin-react-refresh
41
41
  */
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ let react_require = createRequire(import.meta.url), PLUGIN_REACT_NAME = 'rsbuild
46
46
  /[\\/]node_modules[\\/]/
47
47
  ],
48
48
  resourceQuery: {
49
- not: /raw/
49
+ not: /^\?raw$/
50
50
  },
51
51
  ...finalOptions.reactRefreshOptions
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rslib/core": "0.10.4",
30
- "@types/node": "^22.15.34",
30
+ "@types/node": "^22.16.0",
31
31
  "typescript": "^5.8.3",
32
- "@rsbuild/core": "1.4.3",
33
- "@scripts/test-helper": "1.0.1"
32
+ "@scripts/test-helper": "1.0.1",
33
+ "@rsbuild/core": "1.4.4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@rsbuild/core": "1.x"