@unpackjs/plugin-react 1.7.9 → 1.7.11

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.
@@ -21,7 +21,7 @@ var __webpack_require__ = {};
21
21
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
22
  })();
23
23
  (()=>{
24
- __webpack_require__.r = function(exports1) {
24
+ __webpack_require__.r = (exports1)=>{
25
25
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
26
  value: 'Module'
27
27
  });
@@ -101,8 +101,10 @@ import '${(0, core_namespaceObject.getPathInJs)(external_node_path_default().res
101
101
  }
102
102
  return config;
103
103
  };
104
- var __webpack_export_target__ = exports;
105
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
106
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
104
+ exports.applyClickToComponentConfig = __webpack_exports__.applyClickToComponentConfig;
105
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
106
+ "applyClickToComponentConfig"
107
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
108
+ Object.defineProperty(exports, '__esModule', {
107
109
  value: true
108
110
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/click-to-component/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,YAAY,EAIlB,MAAM,gBAAgB,CAAA;AA6BvB,eAAO,MAAM,2BAA2B,8BAGrC;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,oBAAoB,CA+B/B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/click-to-component/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,YAAY,EAIlB,MAAM,gBAAgB,CAAA;AA6BvB,eAAO,MAAM,2BAA2B,8BAGrC;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,oBAAoB,CAmC/B,CAAA"}
@@ -7,7 +7,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_http_2dc67212__ from "node:http";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__ from "@unpackjs/core";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_launch_editor_c6c8c971__ from "launch-editor";
10
- var click_to_component_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
10
+ var click_to_component_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
11
11
  const createServer = ()=>new Promise((resolve)=>{
12
12
  const server = __WEBPACK_EXTERNAL_MODULE_node_http_2dc67212__["default"].createServer((req, res)=>{
13
13
  const params = new URLSearchParams(req.url.slice(1));
@@ -34,7 +34,7 @@ const createServer = ()=>new Promise((resolve)=>{
34
34
  });
35
35
  const applyClickToComponentConfig = async ({ config, unpackConfig })=>{
36
36
  const { port } = await createServer();
37
- const injectScript = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].readFileSync(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(click_to_component_rslib_entry_dirname, './injectScript.js'), 'utf-8');
37
+ const injectScript = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].readFileSync(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(click_to_component_dirname, './injectScript.js'), 'utf-8');
38
38
  const scriptTpl = `
39
39
  if (!document.querySelector('#__click-to-component__')) {
40
40
  const script = document.createElement('script')
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ var __webpack_require__ = {};
21
21
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
22
  })();
23
23
  (()=>{
24
- __webpack_require__.r = function(exports1) {
24
+ __webpack_require__.r = (exports1)=>{
25
25
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
26
  value: 'Module'
27
27
  });
@@ -51,10 +51,10 @@ const pluginReact = (options = {})=>{
51
51
  const { clickToComponent, reactCompiler } = options;
52
52
  return {
53
53
  name: PLUGIN_NAME,
54
- bundlerConfig: async (originalConfig, { unpackConfig, mergeConfig, bundler })=>{
54
+ bundlerConfig: async (originalConfig, { unpackConfig, mergeConfig })=>{
55
55
  let config = originalConfig;
56
56
  const isRspack = 'rspack' === unpackConfig.bundler;
57
- const HtmlPlugin = isRspack ? bundler.HtmlRspackPlugin : core_namespaceObject.HtmlWebpackPlugin;
57
+ const HtmlPlugin = isRspack ? core_namespaceObject.rspack.HtmlRspackPlugin : core_namespaceObject.HtmlWebpackPlugin;
58
58
  config = (0, external_mpa_cjs_namespaceObject.applyMpaConfig)({
59
59
  config,
60
60
  unpackConfig,
@@ -147,8 +147,12 @@ const pluginReact = (options = {})=>{
147
147
  }
148
148
  };
149
149
  };
150
- var __webpack_export_target__ = exports;
151
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
152
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
150
+ exports.PLUGIN_NAME = __webpack_exports__.PLUGIN_NAME;
151
+ exports.pluginReact = __webpack_exports__.pluginReact;
152
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
153
+ "PLUGIN_NAME",
154
+ "pluginReact"
155
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
156
+ Object.defineProperty(exports, '__esModule', {
153
157
  value: true
154
158
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,YAAY,EAMlB,MAAM,gBAAgB,CAAA;AAKvB,eAAO,MAAM,WAAW,iBAAiB,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AACD,eAAO,MAAM,WAAW,aAAa,kBAAkB,KAAQ,YAwF9D,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,YAAY,EAOlB,MAAM,gBAAgB,CAAA;AAKvB,eAAO,MAAM,WAAW,iBAAiB,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AACD,eAAO,MAAM,WAAW,aAAa,kBAAkB,KAAQ,YAuF9D,CAAA"}
package/dist/index.js CHANGED
@@ -9,16 +9,16 @@ import * as __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__ from "@unpackjs/
9
9
  import * as __WEBPACK_EXTERNAL_MODULE__click_to_component_index_js_1f068bff__ from "./click-to-component/index.js";
10
10
  import * as __WEBPACK_EXTERNAL_MODULE__mpa_js_c5cf22d9__ from "./mpa.js";
11
11
  import * as __WEBPACK_EXTERNAL_MODULE__splitChunks_js_b23140d8__ from "./splitChunks.js";
12
- var src_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
12
+ var src_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
13
13
  const PLUGIN_NAME = 'unpack:react';
14
14
  const pluginReact = (options = {})=>{
15
15
  const { clickToComponent, reactCompiler } = options;
16
16
  return {
17
17
  name: PLUGIN_NAME,
18
- bundlerConfig: async (originalConfig, { unpackConfig, mergeConfig, bundler })=>{
18
+ bundlerConfig: async (originalConfig, { unpackConfig, mergeConfig })=>{
19
19
  let config = originalConfig;
20
20
  const isRspack = 'rspack' === unpackConfig.bundler;
21
- const HtmlPlugin = isRspack ? bundler.HtmlRspackPlugin : __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.HtmlWebpackPlugin;
21
+ const HtmlPlugin = isRspack ? __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.rspack.HtmlRspackPlugin : __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.HtmlWebpackPlugin;
22
22
  config = (0, __WEBPACK_EXTERNAL_MODULE__mpa_js_c5cf22d9__.applyMpaConfig)({
23
23
  config,
24
24
  unpackConfig,
@@ -88,7 +88,7 @@ const pluginReact = (options = {})=>{
88
88
  })
89
89
  },
90
90
  reactCompiler && {
91
- loader: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(src_rslib_entry_dirname, './react-compiler-loader/index.cjs'),
91
+ loader: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(src_dirname, './react-compiler-loader/index.cjs'),
92
92
  options: {
93
93
  target: (0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.getUserDepVersion)(unpackConfig.root, 'react').split('.')[0]
94
94
  }
package/dist/mpa.cjs CHANGED
@@ -21,7 +21,7 @@ var __webpack_require__ = {};
21
21
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
22
  })();
23
23
  (()=>{
24
- __webpack_require__.r = function(exports1) {
24
+ __webpack_require__.r = (exports1)=>{
25
25
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
26
  value: 'Module'
27
27
  });
@@ -54,11 +54,11 @@ const applyMpaConfig = ({ config, unpackConfig, mergeConfig, HtmlPlugin })=>{
54
54
  const createTempFile = (entry)=>{
55
55
  var _userOptions_globalImport, _unpackConfig_html;
56
56
  (0, core_namespaceObject.removeDir)(external_node_path_default().join(unpackConfig.root, tempDirectory));
57
- const globalImport = (null === (_userOptions_globalImport = userOptions.globalImport) || void 0 === _userOptions_globalImport ? void 0 : _userOptions_globalImport.reduce((acc, curr)=>`${acc}\nimport '${(0, core_namespaceObject.getPathInJs)(external_node_path_default().resolve(unpackConfig.root, curr))}'`, '')) || '';
57
+ const globalImport = (null == (_userOptions_globalImport = userOptions.globalImport) ? void 0 : _userOptions_globalImport.reduce((acc, curr)=>`${acc}\nimport '${(0, core_namespaceObject.getPathInJs)(external_node_path_default().resolve(unpackConfig.root, curr))}'`, '')) || '';
58
58
  const { layout } = userOptions;
59
59
  const layoutImport = layout ? `import Layout from '${(0, core_namespaceObject.getPathInJs)(external_node_path_default().resolve(unpackConfig.root, layout))}'` : '';
60
60
  const layoutJSX = layout ? '<Layout><App /></Layout>' : '<App />';
61
- const rootElement = `document.getElementById('${null === (_unpackConfig_html = unpackConfig.html) || void 0 === _unpackConfig_html ? void 0 : _unpackConfig_html.mountId}')`;
61
+ const rootElement = `document.getElementById('${null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.mountId}')`;
62
62
  const reactDOMSource = 'react-dom/client';
63
63
  const renderer = `ReactDOM.createRoot(${rootElement}).render(${layoutJSX})`;
64
64
  Object.entries(entry).forEach(([entryName, entryConfig])=>{
@@ -110,8 +110,8 @@ ${renderer}
110
110
  };
111
111
  if (pageConfig.template) pageConfig.template = external_node_path_default().join(indexFilePath, '../', pageConfig.template);
112
112
  html.push({
113
- template: (null === (_unpackConfig_html = unpackConfig.html) || void 0 === _unpackConfig_html ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
114
- 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),
113
+ template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
114
+ templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? void 0 : _unpackConfig_html2.template) ? isRspack ? void 0 : false : core_namespaceObject.TEMPLATE_CONTENT),
115
115
  minify: false,
116
116
  filename: `${entryName}.html`,
117
117
  chunks: [
@@ -119,12 +119,12 @@ ${renderer}
119
119
  ],
120
120
  ...pageConfig,
121
121
  templateParameters: {
122
- mountId: null === (_unpackConfig_html3 = unpackConfig.html) || void 0 === _unpackConfig_html3 ? void 0 : _unpackConfig_html3.mountId,
123
- title: (0, core_namespaceObject.isFunction)(null === (_unpackConfig_html4 = unpackConfig.html) || void 0 === _unpackConfig_html4 ? void 0 : _unpackConfig_html4.title) ? null === (_unpackConfig_html5 = unpackConfig.html) || void 0 === _unpackConfig_html5 ? void 0 : _unpackConfig_html5.title({
122
+ mountId: null == (_unpackConfig_html3 = unpackConfig.html) ? void 0 : _unpackConfig_html3.mountId,
123
+ title: (0, core_namespaceObject.isFunction)(null == (_unpackConfig_html4 = unpackConfig.html) ? void 0 : _unpackConfig_html4.title) ? null == (_unpackConfig_html5 = unpackConfig.html) ? void 0 : _unpackConfig_html5.title({
124
124
  entryName
125
- }) : (null === (_unpackConfig_html6 = unpackConfig.html) || void 0 === _unpackConfig_html6 ? void 0 : _unpackConfig_html6.title) || '',
126
- headTag: (null === (_unpackConfig_html7 = unpackConfig.html) || void 0 === _unpackConfig_html7 ? void 0 : _unpackConfig_html7.headTag) || '',
127
- ...null === (_unpackConfig_html8 = unpackConfig.html) || void 0 === _unpackConfig_html8 ? void 0 : _unpackConfig_html8.templateParameters,
125
+ }) : (null == (_unpackConfig_html6 = unpackConfig.html) ? void 0 : _unpackConfig_html6.title) || '',
126
+ headTag: (null == (_unpackConfig_html7 = unpackConfig.html) ? void 0 : _unpackConfig_html7.headTag) || '',
127
+ ...null == (_unpackConfig_html8 = unpackConfig.html) ? void 0 : _unpackConfig_html8.templateParameters,
128
128
  ...pageConfig.templateParameters
129
129
  }
130
130
  });
@@ -143,8 +143,10 @@ ${renderer}
143
143
  });
144
144
  return config;
145
145
  };
146
- var __webpack_export_target__ = exports;
147
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
148
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
146
+ exports.applyMpaConfig = __webpack_exports__.applyMpaConfig;
147
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
148
+ "applyMpaConfig"
149
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
150
+ Object.defineProperty(exports, '__esModule', {
149
151
  value: true
150
152
  });
package/dist/mpa.js CHANGED
@@ -17,11 +17,11 @@ const applyMpaConfig = ({ config, unpackConfig, mergeConfig, HtmlPlugin })=>{
17
17
  const createTempFile = (entry)=>{
18
18
  var _userOptions_globalImport, _unpackConfig_html;
19
19
  (0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.removeDir)(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(unpackConfig.root, tempDirectory));
20
- const globalImport = (null === (_userOptions_globalImport = userOptions.globalImport) || void 0 === _userOptions_globalImport ? void 0 : _userOptions_globalImport.reduce((acc, curr)=>`${acc}\nimport '${(0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.getPathInJs)(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, curr))}'`, '')) || '';
20
+ const globalImport = (null == (_userOptions_globalImport = userOptions.globalImport) ? void 0 : _userOptions_globalImport.reduce((acc, curr)=>`${acc}\nimport '${(0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.getPathInJs)(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, curr))}'`, '')) || '';
21
21
  const { layout } = userOptions;
22
22
  const layoutImport = layout ? `import Layout from '${(0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.getPathInJs)(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, layout))}'` : '';
23
23
  const layoutJSX = layout ? '<Layout><App /></Layout>' : '<App />';
24
- const rootElement = `document.getElementById('${null === (_unpackConfig_html = unpackConfig.html) || void 0 === _unpackConfig_html ? void 0 : _unpackConfig_html.mountId}')`;
24
+ const rootElement = `document.getElementById('${null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.mountId}')`;
25
25
  const reactDOMSource = 'react-dom/client';
26
26
  const renderer = `ReactDOM.createRoot(${rootElement}).render(${layoutJSX})`;
27
27
  Object.entries(entry).forEach(([entryName, entryConfig])=>{
@@ -73,8 +73,8 @@ ${renderer}
73
73
  };
74
74
  if (pageConfig.template) pageConfig.template = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(indexFilePath, '../', pageConfig.template);
75
75
  html.push({
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 : false : __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.TEMPLATE_CONTENT),
76
+ template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
77
+ templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? 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: [
@@ -82,12 +82,12 @@ ${renderer}
82
82
  ],
83
83
  ...pageConfig,
84
84
  templateParameters: {
85
- mountId: null === (_unpackConfig_html3 = unpackConfig.html) || void 0 === _unpackConfig_html3 ? void 0 : _unpackConfig_html3.mountId,
86
- title: (0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.isFunction)(null === (_unpackConfig_html4 = unpackConfig.html) || void 0 === _unpackConfig_html4 ? void 0 : _unpackConfig_html4.title) ? null === (_unpackConfig_html5 = unpackConfig.html) || void 0 === _unpackConfig_html5 ? void 0 : _unpackConfig_html5.title({
85
+ mountId: null == (_unpackConfig_html3 = unpackConfig.html) ? void 0 : _unpackConfig_html3.mountId,
86
+ title: (0, __WEBPACK_EXTERNAL_MODULE__unpackjs_core_a401ca19__.isFunction)(null == (_unpackConfig_html4 = unpackConfig.html) ? void 0 : _unpackConfig_html4.title) ? null == (_unpackConfig_html5 = unpackConfig.html) ? void 0 : _unpackConfig_html5.title({
87
87
  entryName
88
- }) : (null === (_unpackConfig_html6 = unpackConfig.html) || void 0 === _unpackConfig_html6 ? void 0 : _unpackConfig_html6.title) || '',
89
- headTag: (null === (_unpackConfig_html7 = unpackConfig.html) || void 0 === _unpackConfig_html7 ? void 0 : _unpackConfig_html7.headTag) || '',
90
- ...null === (_unpackConfig_html8 = unpackConfig.html) || void 0 === _unpackConfig_html8 ? void 0 : _unpackConfig_html8.templateParameters,
88
+ }) : (null == (_unpackConfig_html6 = unpackConfig.html) ? void 0 : _unpackConfig_html6.title) || '',
89
+ headTag: (null == (_unpackConfig_html7 = unpackConfig.html) ? void 0 : _unpackConfig_html7.headTag) || '',
90
+ ...null == (_unpackConfig_html8 = unpackConfig.html) ? void 0 : _unpackConfig_html8.templateParameters,
91
91
  ...pageConfig.templateParameters
92
92
  }
93
93
  });
@@ -21,7 +21,7 @@ var __webpack_require__ = {};
21
21
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
22
  })();
23
23
  (()=>{
24
- __webpack_require__.r = function(exports1) {
24
+ __webpack_require__.r = (exports1)=>{
25
25
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
26
  value: 'Module'
27
27
  });
@@ -86,8 +86,10 @@ async function reactCompilerLoader(input, _inputSourceMap) {
86
86
  callback(e);
87
87
  }
88
88
  }
89
- var __webpack_export_target__ = exports;
90
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
91
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
89
+ exports["default"] = __webpack_exports__["default"];
90
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
91
+ "default"
92
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
93
+ Object.defineProperty(exports, '__esModule', {
92
94
  value: true
93
95
  });
@@ -12,7 +12,7 @@ var __webpack_require__ = {};
12
12
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
13
  })();
14
14
  (()=>{
15
- __webpack_require__.r = function(exports1) {
15
+ __webpack_require__.r = (exports1)=>{
16
16
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
17
  value: 'Module'
18
18
  });
@@ -50,8 +50,10 @@ const applySplitChunksConfig = ({ config, unpackConfig })=>{
50
50
  };
51
51
  return config;
52
52
  };
53
- var __webpack_export_target__ = exports;
54
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
55
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
53
+ exports.applySplitChunksConfig = __webpack_exports__.applySplitChunksConfig;
54
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
55
+ "applySplitChunksConfig"
56
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
57
+ Object.defineProperty(exports, '__esModule', {
56
58
  value: true
57
59
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/plugin-react",
3
- "version": "1.7.9",
3
+ "version": "1.7.11",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,15 +26,20 @@
26
26
  "@babel/core": "7.26.10",
27
27
  "@babel/plugin-proposal-decorators": "7.25.9",
28
28
  "@babel/plugin-transform-class-properties": "7.25.9",
29
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
30
- "@rspack/plugin-react-refresh": "1.0.1",
31
- "@swc/core": "1.11.8",
32
- "@swc/helpers": "0.5.15",
29
+ "@pmmmwh/react-refresh-webpack-plugin": "0.5.16",
30
+ "@rspack/plugin-react-refresh": "1.2.0",
31
+ "@swc/core": "1.11.20",
32
+ "@swc/helpers": "0.5.17",
33
33
  "babel-plugin-react-compiler": "latest",
34
34
  "launch-editor": "2.10.0",
35
- "react-refresh": "0.16.0",
36
- "swc-loader": "0.2.6",
37
- "@unpackjs/core": "^1.7.9"
35
+ "react-refresh": "0.17.0",
36
+ "swc-loader": "0.2.6"
37
+ },
38
+ "devDependencies": {
39
+ "@unpackjs/core": "1.7.11"
40
+ },
41
+ "peerDependencies": {
42
+ "@unpackjs/core": "1.7.11"
38
43
  },
39
44
  "scripts": {
40
45
  "dev": "rslib build --watch",