@lynx-js/react-rsbuild-plugin 0.12.2 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.12.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ([#2051](https://github.com/lynx-family/lynx-stack/pull/2051))
8
+
9
+ - Updated dependencies []:
10
+ - @lynx-js/react-alias-rsbuild-plugin@0.12.4
11
+ - @lynx-js/use-sync-external-store@1.5.0
12
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
13
+ - @lynx-js/react-webpack-plugin@0.7.3
14
+
15
+ ## 0.12.3
16
+
17
+ ### Patch Changes
18
+
19
+ - expose LAYERS via `api.expose` for other rsbuild plugins. ([#2006](https://github.com/lynx-family/lynx-stack/pull/2006))
20
+
21
+ - Updated dependencies [[`cd89bf9`](https://github.com/lynx-family/lynx-stack/commit/cd89bf9e3fc8ed4658dfb6c983584376416d620f)]:
22
+ - @lynx-js/template-webpack-plugin@0.10.1
23
+ - @lynx-js/react-alias-rsbuild-plugin@0.12.3
24
+ - @lynx-js/use-sync-external-store@1.5.0
25
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
26
+ - @lynx-js/react-webpack-plugin@0.7.3
27
+ - @lynx-js/css-extract-webpack-plugin@0.7.0
28
+
3
29
  ## 0.12.2
4
30
 
5
31
  ### Patch Changes
package/dist/300.js CHANGED
@@ -3,7 +3,7 @@ export const __rspack_esm_ids = [
3
3
  "300"
4
4
  ];
5
5
  export const __webpack_modules__ = {
6
- "./src/resolve.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+ "./src/resolve.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
7
7
  __webpack_require__.d(__webpack_exports__, {
8
8
  getImportResolver: ()=>getImportResolver,
9
9
  getMainThreadResolver: ()=>getMainThreadResolver
package/dist/index.d.ts CHANGED
@@ -5,7 +5,9 @@
5
5
  */
6
6
 
7
7
  import { LAYERS } from '@lynx-js/react-webpack-plugin';
8
+ import type { LynxTemplatePlugin as LynxTemplatePlugin_2 } from '@lynx-js/template-webpack-plugin';
8
9
  import type { RsbuildPlugin } from '@rsbuild/core';
10
+ import type { TemplateHooks } from '@lynx-js/template-webpack-plugin';
9
11
 
10
12
  /**
11
13
  * {@inheritdoc CompatVisitorConfig.addComponentElement}
@@ -412,6 +414,10 @@ export declare interface ExtractStrConfig {
412
414
 
413
415
  export { LAYERS }
414
416
 
417
+ export declare interface LynxTemplatePlugin {
418
+ getLynxTemplatePluginHooks: typeof LynxTemplatePlugin_2.getLynxTemplatePluginHooks;
419
+ }
420
+
415
421
  /**
416
422
  * Create a rsbuild plugin for ReactLynx.
417
423
  *
@@ -723,4 +729,6 @@ export declare interface ShakeVisitorConfig {
723
729
  removeCallParams: Array<string>
724
730
  }
725
731
 
732
+ export { TemplateHooks }
733
+
726
734
  export { }
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ import * as __rspack_external_node_path_c5b9b54f from "node:path";
3
3
  import * as __rspack_external_node_url_e96de089 from "node:url";
4
4
  import { createRequire } from "node:module";
5
5
  import { LAYERS, ReactWebpackPlugin } from "@lynx-js/react-webpack-plugin";
6
- import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-plugin";
7
6
  import { LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } from "@lynx-js/template-webpack-plugin";
7
+ import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-plugin";
8
8
  import { ReactRefreshRspackPlugin, ReactRefreshWebpackPlugin } from "@lynx-js/react-refresh-webpack-plugin";
9
9
  var __webpack_modules__ = {
10
- "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js" (__unused_webpack_module, exports) {
10
+ "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js" (__unused_rspack_module, exports) {
11
11
  exports._accessExpressionAsString = void 0;
12
12
  const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
13
13
  exports._accessExpressionAsString = _accessExpressionAsString;
@@ -52,7 +52,7 @@ var __webpack_modules__ = {
52
52
  "with"
53
53
  ]);
54
54
  },
55
- "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_assertGuard.js" (__unused_webpack_module, exports, __webpack_require__) {
55
+ "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_assertGuard.js" (__unused_rspack_module, exports, __webpack_require__) {
56
56
  exports._assertGuard = void 0;
57
57
  const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/TypeGuardError.mjs");
58
58
  const _assertGuard = (exceptionable, props, factory)=>{
@@ -71,7 +71,7 @@ var __webpack_modules__ = {
71
71
  "node:url" (module) {
72
72
  module.exports = __rspack_external_node_url_e96de089;
73
73
  },
74
- "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/TypeGuardError.mjs" (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
74
+ "../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/TypeGuardError.mjs" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
75
  __webpack_require__.r(__webpack_exports__);
76
76
  __webpack_require__.d(__webpack_exports__, {
77
77
  TypeGuardError: ()=>TypeGuardError
@@ -135,7 +135,7 @@ __webpack_require__.m = __webpack_modules__;
135
135
  })();
136
136
  (()=>{
137
137
  __webpack_require__.r = (exports)=>{
138
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
138
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
139
139
  value: 'Module'
140
140
  });
141
141
  Object.defineProperty(exports, '__esModule', {
@@ -1251,6 +1251,12 @@ function pluginReactLynx(userOptions) {
1251
1251
  return config;
1252
1252
  });
1253
1253
  if (resolvedOptions.experimental_isLazyBundle) applyLazy(api);
1254
+ api.expose(Symbol.for('LAYERS'), LAYERS);
1255
+ api.expose(Symbol.for('LynxTemplatePlugin'), {
1256
+ LynxTemplatePlugin: {
1257
+ getLynxTemplatePluginHooks: LynxTemplatePlugin.getLynxTemplatePluginHooks.bind(LynxTemplatePlugin)
1258
+ }
1259
+ });
1254
1260
  const rspeedyAPIs = api.useExposed(Symbol.for('rspeedy.api'));
1255
1261
  const require = createRequire(import.meta.url);
1256
1262
  const { version } = require('../package.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-extract-webpack-plugin": "0.7.0",
36
- "@lynx-js/react-alias-rsbuild-plugin": "0.12.2",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "0.12.4",
37
37
  "@lynx-js/react-refresh-webpack-plugin": "0.3.4",
38
38
  "@lynx-js/react-webpack-plugin": "0.7.3",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "0.1.3",
40
- "@lynx-js/template-webpack-plugin": "0.10.0",
40
+ "@lynx-js/template-webpack-plugin": "0.10.1",
41
41
  "@lynx-js/use-sync-external-store": "1.5.0",
42
42
  "background-only": "^0.0.1"
43
43
  },
@@ -54,9 +54,9 @@
54
54
  "type-fest": "^5.0.1",
55
55
  "typia": "10.1.0",
56
56
  "typia-rspack-plugin": "2.2.2",
57
- "@lynx-js/react": "0.115.1",
57
+ "@lynx-js/react": "0.115.3",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
- "@lynx-js/rspeedy": "0.12.3",
59
+ "@lynx-js/rspeedy": "0.12.5",
60
60
  "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {