@unpackjs/plugin-react 1.7.6 → 1.7.7

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.
@@ -50,10 +50,7 @@ function getFiberWithDebugSourceByTarget(target) {
50
50
  const maxDepth = 10;
51
51
  const doNext = (fiber, depth = 0)=>{
52
52
  if (!fiber) return;
53
- if (depth > maxDepth) {
54
- console.warn('Recursion depth exceeded. Aborting to prevent stack overflow.');
55
- return;
56
- }
53
+ if (depth > maxDepth) return;
57
54
  if (fiber._debugSource) return fiber;
58
55
  if (fiber._debugOwner) return doNext(fiber._debugOwner, depth + 1);
59
56
  console.warn('[WARN] click-to-component cannot work with the minified version of React.');
package/dist/mpa.cjs CHANGED
@@ -117,7 +117,7 @@ ${renderer}
117
117
  if (pageConfig.template) pageConfig.template = external_node_path_default().join(indexFilePath, '../', pageConfig.template);
118
118
  html.push({
119
119
  template: (null === (_unpackConfig_html = unpackConfig.html) || void 0 === _unpackConfig_html ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
120
- templateContent: (null === (_unpackConfig_html1 = unpackConfig.html) || void 0 === _unpackConfig_html1 ? void 0 : _unpackConfig_html1.templateContent) || ((null === (_unpackConfig_html2 = unpackConfig.html) || void 0 === _unpackConfig_html2 ? void 0 : _unpackConfig_html2.template) ? !!isRspack && void 0 : core_namespaceObject.TEMPLATE_CONTENT),
120
+ templateContent: (null === (_unpackConfig_html1 = unpackConfig.html) || void 0 === _unpackConfig_html1 ? void 0 : _unpackConfig_html1.templateContent) || ((null === (_unpackConfig_html2 = unpackConfig.html) || void 0 === _unpackConfig_html2 ? void 0 : _unpackConfig_html2.template) ? isRspack ? void 0 : false : core_namespaceObject.TEMPLATE_CONTENT),
121
121
  minify: false,
122
122
  filename: `${entryName}.html`,
123
123
  chunks: [
package/dist/mpa.js CHANGED
@@ -74,7 +74,7 @@ ${renderer}
74
74
  if (pageConfig.template) pageConfig.template = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(indexFilePath, '../', pageConfig.template);
75
75
  html.push({
76
76
  template: (null === (_unpackConfig_html = unpackConfig.html) || void 0 === _unpackConfig_html ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
77
- templateContent: (null === (_unpackConfig_html1 = unpackConfig.html) || void 0 === _unpackConfig_html1 ? void 0 : _unpackConfig_html1.templateContent) || ((null === (_unpackConfig_html2 = unpackConfig.html) || void 0 === _unpackConfig_html2 ? void 0 : _unpackConfig_html2.template) ? !!isRspack && void 0 : __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.TEMPLATE_CONTENT),
77
+ templateContent: (null === (_unpackConfig_html1 = unpackConfig.html) || void 0 === _unpackConfig_html1 ? void 0 : _unpackConfig_html1.templateContent) || ((null === (_unpackConfig_html2 = unpackConfig.html) || void 0 === _unpackConfig_html2 ? void 0 : _unpackConfig_html2.template) ? isRspack ? void 0 : false : __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.TEMPLATE_CONTENT),
78
78
  minify: false,
79
79
  filename: `${entryName}.html`,
80
80
  chunks: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/plugin-react",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,18 +23,18 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@babel/core": "7.26.8",
26
+ "@babel/core": "7.26.9",
27
27
  "@babel/plugin-proposal-decorators": "7.25.9",
28
28
  "@babel/plugin-transform-class-properties": "7.25.9",
29
29
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
30
30
  "@rspack/plugin-react-refresh": "1.0.1",
31
- "@swc/core": "1.10.15",
31
+ "@swc/core": "1.11.1",
32
32
  "@swc/helpers": "0.5.15",
33
33
  "babel-plugin-react-compiler": "latest",
34
- "launch-editor": "2.9.1",
34
+ "launch-editor": "2.10.0",
35
35
  "react-refresh": "0.16.0",
36
36
  "swc-loader": "0.2.6",
37
- "@unpackjs/core": "^1.7.6"
37
+ "@unpackjs/core": "^1.7.7"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "rslib build --watch",