@rsbuild/plugin-react 1.1.1 → 1.2.0
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 +12 -17
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -13,23 +13,17 @@ function __webpack_require__(moduleId) {
|
|
|
13
13
|
};
|
|
14
14
|
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
15
15
|
}
|
|
16
|
-
__webpack_require__.n =
|
|
17
|
-
var getter = module && module.__esModule ?
|
|
18
|
-
return module.default;
|
|
19
|
-
} : function() {
|
|
20
|
-
return module;
|
|
21
|
-
};
|
|
16
|
+
__webpack_require__.n = (module)=>{
|
|
17
|
+
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
22
18
|
return __webpack_require__.d(getter, {
|
|
23
19
|
a: getter
|
|
24
20
|
}), getter;
|
|
25
|
-
}, __webpack_require__.d =
|
|
21
|
+
}, __webpack_require__.d = (exports1, definition)=>{
|
|
26
22
|
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key) && Object.defineProperty(exports1, key, {
|
|
27
23
|
enumerable: !0,
|
|
28
24
|
get: definition[key]
|
|
29
25
|
});
|
|
30
|
-
}, __webpack_require__.o =
|
|
31
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
32
|
-
}, __webpack_require__.r = function(exports1) {
|
|
26
|
+
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
|
|
33
27
|
'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
34
28
|
value: 'Module'
|
|
35
29
|
}), Object.defineProperty(exports1, '__esModule', {
|
|
@@ -37,10 +31,10 @@ __webpack_require__.n = function(module) {
|
|
|
37
31
|
});
|
|
38
32
|
};
|
|
39
33
|
var __webpack_exports__ = {};
|
|
40
|
-
(()=>{
|
|
34
|
+
for(var __webpack_i__ in (()=>{
|
|
41
35
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
PLUGIN_REACT_NAME: ()=>PLUGIN_REACT_NAME,
|
|
37
|
+
pluginReact: ()=>pluginReact
|
|
44
38
|
});
|
|
45
39
|
let external_node_module_namespaceObject = require("node:module"), external_node_path_namespaceObject = require("node:path");
|
|
46
40
|
var external_node_path_default = __webpack_require__.n(external_node_path_namespaceObject);
|
|
@@ -141,9 +135,10 @@ var __webpack_exports__ = {};
|
|
|
141
135
|
'rspack' === api.context.bundlerType && (applyBasicReactSupport(api, finalOptions), finalOptions.enableProfiler && applyReactProfiler(api)), applySplitChunksRule(api, null == finalOptions ? void 0 : finalOptions.splitChunks);
|
|
142
136
|
}
|
|
143
137
|
});
|
|
144
|
-
})()
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
138
|
+
})(), exports.PLUGIN_REACT_NAME = __webpack_exports__.PLUGIN_REACT_NAME, exports.pluginReact = __webpack_exports__.pluginReact, __webpack_exports__)-1 === [
|
|
139
|
+
"PLUGIN_REACT_NAME",
|
|
140
|
+
"pluginReact"
|
|
141
|
+
].indexOf(__webpack_i__) && (exports[__webpack_i__] = __webpack_exports__[__webpack_i__]);
|
|
142
|
+
Object.defineProperty(exports, '__esModule', {
|
|
148
143
|
value: !0
|
|
149
144
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rspack/plugin-react-refresh": "~1.0
|
|
26
|
-
"react-refresh": "^0.
|
|
25
|
+
"@rspack/plugin-react-refresh": "~1.2.0",
|
|
26
|
+
"react-refresh": "^0.17.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rslib/core": "0.
|
|
30
|
-
"@types/node": "^22.
|
|
31
|
-
"typescript": "^5.
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
29
|
+
"@rslib/core": "0.6.1",
|
|
30
|
+
"@types/node": "^22.14.0",
|
|
31
|
+
"typescript": "^5.8.3",
|
|
32
|
+
"@rsbuild/core": "1.3.5",
|
|
33
|
+
"@scripts/test-helper": "1.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@rsbuild/core": "1.x"
|