@lynx-js/react-rsbuild-plugin 0.12.1 → 0.12.3

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,28 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - expose LAYERS via `api.expose` for other rsbuild plugins. ([#2006](https://github.com/lynx-family/lynx-stack/pull/2006))
8
+
9
+ - Updated dependencies [[`cd89bf9`](https://github.com/lynx-family/lynx-stack/commit/cd89bf9e3fc8ed4658dfb6c983584376416d620f)]:
10
+ - @lynx-js/template-webpack-plugin@0.10.1
11
+ - @lynx-js/react-alias-rsbuild-plugin@0.12.3
12
+ - @lynx-js/use-sync-external-store@1.5.0
13
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
14
+ - @lynx-js/react-webpack-plugin@0.7.3
15
+ - @lynx-js/css-extract-webpack-plugin@0.7.0
16
+
17
+ ## 0.12.2
18
+
19
+ ### Patch Changes
20
+
21
+ - Support environment variants to enable multiple configurations for the same targets. ([#1969](https://github.com/lynx-family/lynx-stack/pull/1969))
22
+
23
+ - Updated dependencies []:
24
+ - @lynx-js/react-alias-rsbuild-plugin@0.12.2
25
+
3
26
  ## 0.12.1
4
27
 
5
28
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-pl
7
7
  import { LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } from "@lynx-js/template-webpack-plugin";
8
8
  import { ReactRefreshRspackPlugin, ReactRefreshWebpackPlugin } from "@lynx-js/react-refresh-webpack-plugin";
9
9
  var __webpack_modules__ = {
10
- "../../../node_modules/.pnpm/typia@9.7.2_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_webpack_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,9 +52,9 @@ var __webpack_modules__ = {
52
52
  "with"
53
53
  ]);
54
54
  },
55
- "../../../node_modules/.pnpm/typia@9.7.2_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_webpack_module, exports, __webpack_require__) {
56
56
  exports._assertGuard = void 0;
57
- const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.3/node_modules/typia/lib/TypeGuardError.mjs");
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)=>{
59
59
  if (true === exceptionable) if (factory) throw factory(props);
60
60
  else throw new TypeGuardError_1.TypeGuardError(props);
@@ -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@9.7.2_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_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
75
  __webpack_require__.r(__webpack_exports__);
76
76
  __webpack_require__.d(__webpack_exports__, {
77
77
  TypeGuardError: ()=>TypeGuardError
@@ -290,8 +290,8 @@ function applyEntry(api, options) {
290
290
  const { config, logger } = api.useExposed(Symbol.for('rspeedy.api'));
291
291
  api.modifyBundlerChain(async (chain, { environment, isDev, isProd })=>{
292
292
  const entries = chain.entryPoints.entries() ?? {};
293
- const isLynx = 'lynx' === environment.name;
294
- const isWeb = 'web' === environment.name;
293
+ const isLynx = 'lynx' === environment.name || environment.name.startsWith('lynx-');
294
+ const isWeb = 'web' === environment.name || environment.name.startsWith('web-');
295
295
  const { hmr, liveReload } = environment.config.dev ?? {};
296
296
  const enabledHMR = isDev && !isWeb && false !== hmr;
297
297
  const enabledLiveReload = isDev && !isWeb && false !== liveReload;
@@ -618,8 +618,8 @@ function applyUseSyncExternalStore(api) {
618
618
  })));
619
619
  });
620
620
  }
621
- var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
622
- var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.3/node_modules/typia/lib/internal/_assertGuard.js");
621
+ var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
622
+ var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_assertGuard.js");
623
623
  const validateConfig = (()=>{
624
624
  const _io0 = (input, _exceptionable = true)=>(void 0 === input.compat || "object" == typeof input.compat && null !== input.compat && false === Array.isArray(input.compat) && _io1(input.compat, _exceptionable)) && (void 0 === input.customCSSInheritanceList || Array.isArray(input.customCSSInheritanceList) && input.customCSSInheritanceList.every((elem, _index1)=>"string" == typeof elem)) && (void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside) && (void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation) && (void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope) && (void 0 === input.firstScreenSyncTiming || "immediately" === input.firstScreenSyncTiming || "jsReady" === input.firstScreenSyncTiming) && (void 0 === input.enableSSR || "boolean" == typeof input.enableSSR) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.shake || "object" == typeof input.shake && null !== input.shake && false === Array.isArray(input.shake) && _io4(input.shake, _exceptionable)) && (void 0 === input.defineDCE || "object" == typeof input.defineDCE && null !== input.defineDCE && false === Array.isArray(input.defineDCE) && _io5(input.defineDCE, _exceptionable)) && (void 0 === input.engineVersion || "string" == typeof input.engineVersion) && (void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion) && null !== input.extractStr && (void 0 === input.extractStr || "boolean" == typeof input.extractStr || "object" == typeof input.extractStr && null !== input.extractStr && false === Array.isArray(input.extractStr) && _io7(input.extractStr, _exceptionable)) && (void 0 === input.experimental_isLazyBundle || "boolean" == typeof input.experimental_isLazyBundle) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
625
625
  if ([
@@ -1251,6 +1251,7 @@ function pluginReactLynx(userOptions) {
1251
1251
  return config;
1252
1252
  });
1253
1253
  if (resolvedOptions.experimental_isLazyBundle) applyLazy(api);
1254
+ api.expose(Symbol.for('LAYERS'), LAYERS);
1254
1255
  const rspeedyAPIs = api.useExposed(Symbol.for('rspeedy.api'));
1255
1256
  const require = createRequire(import.meta.url);
1256
1257
  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.1",
3
+ "version": "0.12.3",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,30 +33,30 @@
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.1",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "0.12.3",
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
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "7.52.15",
46
- "@rollup/plugin-typescript": "^12.1.4",
45
+ "@microsoft/api-extractor": "7.55.2",
46
+ "@rollup/plugin-typescript": "^12.3.0",
47
47
  "@rsbuild/core": "1.6.13",
48
48
  "@rsbuild/plugin-sass": "1.4.0",
49
49
  "@rsbuild/plugin-typed-css-modules": "1.1.1",
50
50
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
51
51
  "rsbuild-plugin-publint": "0.3.3",
52
52
  "source-map": "^0.7.6",
53
- "tailwindcss": "^3.4.17",
53
+ "tailwindcss": "^3.4.19",
54
54
  "type-fest": "^5.0.1",
55
- "typia": "9.7.2",
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.2",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
- "@lynx-js/rspeedy": "0.12.2",
59
+ "@lynx-js/rspeedy": "0.12.4",
60
60
  "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {