@lynx-js/react-webpack-plugin-canary 0.10.3-canary-20260807-fe63f6ce → 0.10.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -23
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.10.3-canary-20260807040754-fe63f6cef5e33f5107e85917d3964303e5e33db2
3
+ ## 0.10.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Allow the next minor of `@lynx-js/template-webpack-plugin` as a peer dependency. ([#3362](https://github.com/lynx-family/lynx-stack/pull/3362))
8
8
 
9
- - Updated dependencies [[`43f74b0`](https://github.com/lynx-family/lynx-stack/commit/43f74b01e1d6af7798e79ddd03c0a972d49c3aea), [`3b36a4e`](https://github.com/lynx-family/lynx-stack/commit/3b36a4eb378b98f335c7212cb5258c6722efeed6)]:
10
- - @lynx-js/template-webpack-plugin@0.15.0-canary-20260807040754-fe63f6cef5e33f5107e85917d3964303e5e33db2
11
-
12
9
  ## 0.10.2
13
10
 
14
11
  ### Patch Changes
@@ -42,12 +39,12 @@
42
39
 
43
40
  ```js
44
41
  pluginReactLynx({
45
- firstScreenSyncTiming: "manual",
42
+ firstScreenSyncTiming: 'manual',
46
43
  });
47
44
  ```
48
45
 
49
46
  ```js
50
- import { markFirstScreenSyncReady } from "@lynx-js/react";
47
+ import { markFirstScreenSyncReady } from '@lynx-js/react';
51
48
 
52
49
  markFirstScreenSyncReady();
53
50
  ```
@@ -57,8 +54,8 @@
57
54
  - Add `compat.legacySlot` to `pluginReactLynx`. When enabled, dynamic children are compiled to the pre-SlotV2 form (JSX `children` + `wrapper` elements + `__DynamicPartChildren`/`__DynamicPartSlot` symbols instead of `$0`/`$1` slot props + `SlotV2`), so the compiled output stays compatible with legacy runtimes without `SlotV2` support (`< 0.120.0`, which shipped the SlotV2 refactor in #1764) — e.g. a standalone lazy bundle consumed by a host App that ships an older runtime. ([#2947](https://github.com/lynx-family/lynx-stack/pull/2947))
58
55
 
59
56
  ```js
60
- import { defineConfig } from "@lynx-js/rspeedy";
61
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
57
+ import { defineConfig } from '@lynx-js/rspeedy';
58
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
62
59
 
63
60
  export default defineConfig({
64
61
  plugins: [
@@ -231,16 +228,16 @@
231
228
  type InlineChunkConfig =
232
229
  | boolean
233
230
  | InlineChunkTest
234
- | { enable?: boolean | "auto"; test: InlineChunkTest };
231
+ | { enable?: boolean | 'auto'; test: InlineChunkTest };
235
232
  ```
236
233
 
237
234
  ```ts
238
- import { defineConfig } from "@lynx-js/rspeedy";
235
+ import { defineConfig } from '@lynx-js/rspeedy';
239
236
 
240
237
  export default defineConfig({
241
238
  output: {
242
239
  inlineScripts: ({ name, size }) => {
243
- return name.includes("foo") && size < 1000;
240
+ return name.includes('foo') && size < 1000;
244
241
  },
245
242
  },
246
243
  });
@@ -324,7 +321,7 @@
324
321
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
325
322
 
326
323
  ```js
327
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
324
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
328
325
 
329
326
  export default forwardRef(function App(_, ref) {
330
327
  useImperativeHandle(ref, () => {
@@ -332,7 +329,7 @@
332
329
  return {
333
330
  name() {
334
331
  // This should be considered as background only
335
- console.info("This should not exist in main-thread");
332
+ console.info('This should not exist in main-thread');
336
333
  },
337
334
  };
338
335
  });
@@ -392,14 +389,14 @@
392
389
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
393
390
 
394
391
  ```js
395
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
396
- import { defineConfig } from "@lynx-js/rspeedy";
392
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
393
+ import { defineConfig } from '@lynx-js/rspeedy';
397
394
 
398
395
  export default defineConfig({
399
396
  plugins: [
400
397
  pluginReactLynx({
401
398
  defineDCE: {
402
- __SOME_FALSE_DEFINE__: "false",
399
+ __SOME_FALSE_DEFINE__: 'false',
403
400
  },
404
401
  }),
405
402
  ],
@@ -411,20 +408,20 @@
411
408
  For example, `import` initialized by dead code will be removed:
412
409
 
413
410
  ```js
414
- import { foo } from "bar";
411
+ import { foo } from 'bar';
415
412
 
416
413
  if (__SOME_FALSE_DEFINE__) {
417
414
  foo();
418
- console.log("dead code");
415
+ console.log('dead code');
419
416
  } else {
420
- console.log("reachable code");
417
+ console.log('reachable code');
421
418
  }
422
419
  ```
423
420
 
424
421
  will be transformed to:
425
422
 
426
423
  ```js
427
- console.log("reachable code");
424
+ console.log('reachable code');
428
425
  ```
429
426
 
430
427
  ## 0.6.0
@@ -434,14 +431,14 @@
434
431
  - a30c83d: Add `compat.removeComponentAttrRegex`.
435
432
 
436
433
  ```js
437
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
438
- import { defineConfig } from "@lynx-js/rspeedy";
434
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
435
+ import { defineConfig } from '@lynx-js/rspeedy';
439
436
 
440
437
  export default defineConfig({
441
438
  plugins: [
442
439
  pluginReactLynx({
443
440
  compat: {
444
- removeComponentAttrRegex: "YOUR REGEX",
441
+ removeComponentAttrRegex: 'YOUR REGEX',
445
442
  },
446
443
  }),
447
444
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.10.3-canary-20260807-fe63f6ce",
3
+ "version": "0.10.3",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -44,10 +44,10 @@
44
44
  "@rstest/core": "0.11.3",
45
45
  "css-loader": "^7.1.4",
46
46
  "swc-loader": "^0.2.7",
47
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.10.1-canary-20260807-fe63f6ce",
48
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.15.0-canary-20260807-fe63f6ce",
49
- "@lynx-js/test-tools": "0.0.0",
50
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.123.3-canary-20260807-fe63f6ce"
47
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.10.1",
48
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.123.3",
49
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.15.0",
50
+ "@lynx-js/test-tools": "0.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@lynx-js/template-webpack-plugin": "*"