@lynx-js/react-webpack-plugin-canary 0.9.1 → 0.9.2-canary-20260422-e1796803

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +24 -18
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
+ ## 0.9.2-canary-20260422145430-e1796803444ba70efa86609b620c3a753b6694de
4
+
5
+ ### Patch Changes
6
+
7
+ - Support `@lynx-js/template-webpack-plugin` v0.11.0. ([#2483](https://github.com/lynx-family/lynx-stack/pull/2483))
8
+
9
+ - Updated dependencies [[`e179680`](https://github.com/lynx-family/lynx-stack/commit/e1796803444ba70efa86609b620c3a753b6694de), [`f15494b`](https://github.com/lynx-family/lynx-stack/commit/f15494b3b1231c11facd61bf1e07a43b6df5e07c)]:
10
+ - @lynx-js/template-webpack-plugin@0.11.0-canary-20260422145430-e1796803444ba70efa86609b620c3a753b6694de
11
+
3
12
  ## 0.9.1
4
13
 
5
14
  ### Patch Changes
@@ -25,7 +34,6 @@
25
34
  ### Minor Changes
26
35
 
27
36
  - feat: add `globalPropsMode` option to `PluginReactLynxOptions` ([#2346](https://github.com/lynx-family/lynx-stack/pull/2346))
28
-
29
37
  - When configured to `"event"`, `updateGlobalProps` will only trigger a global event and skip the `runWithForce` flow.
30
38
  - Defaults to `"reactive"`, which means `updateGlobalProps` will trigger re-render automatically.
31
39
 
@@ -34,7 +42,6 @@
34
42
  - Fix sourcemap misalignment when wrapping lazy bundle main-thread chunks. ([#2361](https://github.com/lynx-family/lynx-stack/pull/2361))
35
43
 
36
44
  The lazy bundle IIFE wrapper is now injected in `processAssets` at `PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE + 1` by walking chunk groups instead of patching assets in `beforeEncode`.
37
-
38
45
  - With `experimental_isLazyBundle: true`, the wrapper is applied to lazy-bundle chunk groups.
39
46
  - Without lazy bundle mode, the wrapper is applied to async main-thread chunk groups generated by dynamic import.
40
47
 
@@ -114,16 +121,16 @@
114
121
  type InlineChunkConfig =
115
122
  | boolean
116
123
  | InlineChunkTest
117
- | { enable?: boolean | 'auto'; test: InlineChunkTest };
124
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
118
125
  ```
119
126
 
120
127
  ```ts
121
- import { defineConfig } from '@lynx-js/rspeedy';
128
+ import { defineConfig } from "@lynx-js/rspeedy";
122
129
 
123
130
  export default defineConfig({
124
131
  output: {
125
132
  inlineScripts: ({ name, size }) => {
126
- return name.includes('foo') && size < 1000;
133
+ return name.includes("foo") && size < 1000;
127
134
  },
128
135
  },
129
136
  });
@@ -178,7 +185,6 @@
178
185
  - feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))
179
186
 
180
187
  Now use support the following usage
181
-
182
188
  - mainthread event
183
189
  - mainthread ref
184
190
  - runOnMainThread/runOnBackground
@@ -207,7 +213,7 @@
207
213
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
208
214
 
209
215
  ```js
210
- import { forwardRef, useImperativeHandle } from '@lynx-js/react';
216
+ import { forwardRef, useImperativeHandle } from "@lynx-js/react";
211
217
 
212
218
  export default forwardRef(function App(_, ref) {
213
219
  useImperativeHandle(ref, () => {
@@ -215,7 +221,7 @@
215
221
  return {
216
222
  name() {
217
223
  // This should be considered as background only
218
- console.info('This should not exist in main-thread');
224
+ console.info("This should not exist in main-thread");
219
225
  },
220
226
  };
221
227
  });
@@ -275,14 +281,14 @@
275
281
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
276
282
 
277
283
  ```js
278
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
279
- import { defineConfig } from '@lynx-js/rspeedy';
284
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
285
+ import { defineConfig } from "@lynx-js/rspeedy";
280
286
 
281
287
  export default defineConfig({
282
288
  plugins: [
283
289
  pluginReactLynx({
284
290
  defineDCE: {
285
- __SOME_FALSE_DEFINE__: 'false',
291
+ __SOME_FALSE_DEFINE__: "false",
286
292
  },
287
293
  }),
288
294
  ],
@@ -294,20 +300,20 @@
294
300
  For example, `import` initialized by dead code will be removed:
295
301
 
296
302
  ```js
297
- import { foo } from 'bar';
303
+ import { foo } from "bar";
298
304
 
299
305
  if (__SOME_FALSE_DEFINE__) {
300
306
  foo();
301
- console.log('dead code');
307
+ console.log("dead code");
302
308
  } else {
303
- console.log('reachable code');
309
+ console.log("reachable code");
304
310
  }
305
311
  ```
306
312
 
307
313
  will be transformed to:
308
314
 
309
315
  ```js
310
- console.log('reachable code');
316
+ console.log("reachable code");
311
317
  ```
312
318
 
313
319
  ## 0.6.0
@@ -317,14 +323,14 @@
317
323
  - a30c83d: Add `compat.removeComponentAttrRegex`.
318
324
 
319
325
  ```js
320
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
321
- import { defineConfig } from '@lynx-js/rspeedy';
326
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
327
+ import { defineConfig } from "@lynx-js/rspeedy";
322
328
 
323
329
  export default defineConfig({
324
330
  plugins: [
325
331
  pluginReactLynx({
326
332
  compat: {
327
- removeComponentAttrRegex: 'YOUR REGEX',
333
+ removeComponentAttrRegex: "YOUR REGEX",
328
334
  },
329
335
  }),
330
336
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.9.1",
3
+ "version": "0.9.2-canary-20260422-e1796803",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -42,9 +42,9 @@
42
42
  "css-loader": "^7.1.4",
43
43
  "swc-loader": "^0.2.7",
44
44
  "webpack": "^5.105.2",
45
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.7.0",
46
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.10.9",
47
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.119.0",
45
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.7.1-canary-20260422-e1796803",
46
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.11.0-canary-20260422-e1796803",
47
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.120.0-canary-20260422-e1796803",
48
48
  "@lynx-js/test-tools": "0.0.0",
49
49
  "@lynx-js/vitest-setup": "0.0.0"
50
50
  },