@lynx-js/react-rsbuild-plugin 0.9.7 → 0.9.8

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,38 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.9.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Support @lynx-js/react v0.107.0 ([#438](https://github.com/lynx-family/lynx-stack/pull/438))
8
+
9
+ - fix(web): `:root` not work on web platform ([#607](https://github.com/lynx-family/lynx-stack/pull/607))
10
+
11
+ Note: To solve this issue, you need to upgrade your `react-rsbuild-plugin`
12
+
13
+ - Refactor: Replace built-in `background-only` implementation with npm package ([#602](https://github.com/lynx-family/lynx-stack/pull/602))
14
+
15
+ Previously we maintained custom files:
16
+
17
+ - `empty.ts` for background thread
18
+ - `error.ts` for main thread validation
19
+
20
+ Now adopting the standard `background-only` npm package
21
+
22
+ - fix(web): css selector not work for selectors with combinator and pseudo-class on WEB ([#608](https://github.com/lynx-family/lynx-stack/pull/608))
23
+
24
+ like `.parent > :not([hidden]) ~ :not([hidden])`
25
+
26
+ you will need to upgrade your `react-rsbuild-plugin` to fix this issue
27
+
28
+ - Updated dependencies [[`6a5fc80`](https://github.com/lynx-family/lynx-stack/commit/6a5fc80716e668bacf4ce4ff59c569683ace0ba2), [`06bb78a`](https://github.com/lynx-family/lynx-stack/commit/06bb78a6b93d4a7be7177a6269dd4337852ce90d), [`f3afaf6`](https://github.com/lynx-family/lynx-stack/commit/f3afaf6c7919d3fe60ac2dfcd8af77178436f785), [`bf9c685`](https://github.com/lynx-family/lynx-stack/commit/bf9c68501205b038043e2f315e0a690c8bc46829), [`5269cab`](https://github.com/lynx-family/lynx-stack/commit/5269cabef7609159bdd0dd14a03c5da667907424)]:
29
+ - @lynx-js/react-webpack-plugin@0.6.12
30
+ - @lynx-js/web-webpack-plugin@0.6.6
31
+ - @lynx-js/template-webpack-plugin@0.6.10
32
+ - @lynx-js/react-alias-rsbuild-plugin@0.9.8
33
+ - @lynx-js/react-refresh-webpack-plugin@0.3.2
34
+ - @lynx-js/css-extract-webpack-plugin@0.5.3
35
+
3
36
  ## 0.9.7
4
37
 
5
38
  ### Patch Changes
package/dist/index.js CHANGED
@@ -130,10 +130,20 @@ const ALIAS_BACKGROUND_ONLY_MAIN = 'react:alias-background-only-main';
130
130
  const ALIAS_BACKGROUND_ONLY_BACKGROUND = 'react:alias-background-only-background';
131
131
  function applyBackgroundOnly(api) {
132
132
  const __dirname = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url));
133
- api.modifyBundlerChain((chain)=>{
134
- chain.module.rule(ALIAS_BACKGROUND_ONLY_MAIN).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD).resolve.alias.set('background-only$', __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(__dirname, 'background-only', 'error.js'));
135
- chain.module.rule(ALIAS_BACKGROUND_ONLY_BACKGROUND).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.BACKGROUND).resolve.alias.set('background-only$', __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(__dirname, 'background-only', 'empty.js'));
136
- chain.module.rule(DETECT_IMPORT_ERROR).test(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(__dirname, 'background-only', 'error.js')).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD).use(DETECT_IMPORT_ERROR).loader(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(__dirname, 'loaders/invalid-import-error-loader')).options({
133
+ const backgroundResolve = (0, __WEBPACK_EXTERNAL_MODULE__lynx_js_react_alias_rsbuild_plugin_2a0391db__.createLazyResolver)(__dirname, [
134
+ 'import'
135
+ ]);
136
+ const mainThreadResolve = (0, __WEBPACK_EXTERNAL_MODULE__lynx_js_react_alias_rsbuild_plugin_2a0391db__.createLazyResolver)(__dirname, [
137
+ 'lepus'
138
+ ]);
139
+ api.modifyBundlerChain(async (chain)=>{
140
+ const backgroundOnly = {
141
+ background: await backgroundResolve('background-only'),
142
+ mainThread: await mainThreadResolve('background-only')
143
+ };
144
+ chain.module.rule(ALIAS_BACKGROUND_ONLY_MAIN).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD).resolve.alias.set('background-only$', backgroundOnly.mainThread);
145
+ chain.module.rule(ALIAS_BACKGROUND_ONLY_BACKGROUND).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.BACKGROUND).resolve.alias.set('background-only$', backgroundOnly.background);
146
+ chain.module.rule(DETECT_IMPORT_ERROR).test(backgroundOnly.mainThread).issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD).use(DETECT_IMPORT_ERROR).loader(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(__dirname, 'loaders/invalid-import-error-loader')).options({
137
147
  message: '\'background-only\' cannot be imported from a main-thread module.'
138
148
  });
139
149
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -32,33 +32,34 @@
32
32
  "README.md"
33
33
  ],
34
34
  "dependencies": {
35
+ "background-only": "^0.0.1",
35
36
  "@lynx-js/css-extract-webpack-plugin": "0.5.3",
36
- "@lynx-js/react-alias-rsbuild-plugin": "0.9.7",
37
+ "@lynx-js/react-alias-rsbuild-plugin": "0.9.8",
37
38
  "@lynx-js/react-refresh-webpack-plugin": "0.3.2",
38
- "@lynx-js/react-webpack-plugin": "0.6.11",
39
+ "@lynx-js/react-webpack-plugin": "0.6.12",
39
40
  "@lynx-js/runtime-wrapper-webpack-plugin": "0.0.9",
40
- "@lynx-js/template-webpack-plugin": "0.6.9",
41
- "@lynx-js/web-webpack-plugin": "0.6.5"
41
+ "@lynx-js/template-webpack-plugin": "0.6.10",
42
+ "@lynx-js/web-webpack-plugin": "0.6.6"
42
43
  },
43
44
  "devDependencies": {
44
- "@microsoft/api-extractor": "7.52.3",
45
+ "@microsoft/api-extractor": "7.52.5",
45
46
  "@rollup/plugin-typescript": "^12.1.2",
46
- "@rsbuild/core": "1.3.8",
47
+ "@rsbuild/core": "1.3.11",
47
48
  "@rsbuild/plugin-sass": "1.3.1",
48
49
  "@rsbuild/plugin-typed-css-modules": "1.0.2",
49
50
  "@rsbuild/plugin-webpack-swc": "1.1.0",
50
51
  "@rsbuild/webpack": "1.3.0",
51
52
  "@samchon/openapi": "4.1.0",
52
53
  "tailwindcss": "^3.4.17",
53
- "type-fest": "^4.39.1",
54
+ "type-fest": "^4.40.0",
54
55
  "typia": "9.1.1",
55
56
  "typia-rspack-plugin": "2.0.1",
56
- "@lynx-js/react": "0.106.5",
57
- "@lynx-js/rspeedy": "0.9.2",
57
+ "@lynx-js/react": "0.107.0",
58
+ "@lynx-js/rspeedy": "0.9.3",
58
59
  "@lynx-js/vitest-setup": "0.0.0"
59
60
  },
60
61
  "peerDependencies": {
61
- "@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0"
62
+ "@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0"
62
63
  },
63
64
  "peerDependenciesMeta": {
64
65
  "@lynx-js/react": {
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};