@lynx-js/react-webpack-plugin-canary 0.9.3-canary-20260522-11ef105e → 0.9.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 +19 -19
  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.9.3-canary-20260522094605-11ef105e3dcc3c08f098360d5a3e0367efe4a9d4
3
+ ## 0.9.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Inject the `lynxProcessEvalResult` runtime module only into main-thread chunks. The previous guard checked the chunk name for `:background`, which never matched the actual chunk names (`main__background`, `foo.js-react__background`), so the runtime was duplicated into background and async background chunks. ([#2692](https://github.com/lynx-family/lynx-stack/pull/2692))
8
8
 
9
- - Updated dependencies []:
10
- - @lynx-js/template-webpack-plugin@0.11.2-canary-20260522094605-11ef105e3dcc3c08f098360d5a3e0367efe4a9d4
11
-
12
9
  ## 0.9.2
13
10
 
14
11
  ### Patch Changes
@@ -40,6 +37,7 @@
40
37
  ### Minor Changes
41
38
 
42
39
  - feat: add `globalPropsMode` option to `PluginReactLynxOptions` ([#2346](https://github.com/lynx-family/lynx-stack/pull/2346))
40
+
43
41
  - When configured to `"event"`, `updateGlobalProps` will only trigger a global event and skip the `runWithForce` flow.
44
42
  - Defaults to `"reactive"`, which means `updateGlobalProps` will trigger re-render automatically.
45
43
 
@@ -48,6 +46,7 @@
48
46
  - Fix sourcemap misalignment when wrapping lazy bundle main-thread chunks. ([#2361](https://github.com/lynx-family/lynx-stack/pull/2361))
49
47
 
50
48
  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`.
49
+
51
50
  - With `experimental_isLazyBundle: true`, the wrapper is applied to lazy-bundle chunk groups.
52
51
  - Without lazy bundle mode, the wrapper is applied to async main-thread chunk groups generated by dynamic import.
53
52
 
@@ -127,16 +126,16 @@
127
126
  type InlineChunkConfig =
128
127
  | boolean
129
128
  | InlineChunkTest
130
- | { enable?: boolean | "auto"; test: InlineChunkTest };
129
+ | { enable?: boolean | 'auto'; test: InlineChunkTest };
131
130
  ```
132
131
 
133
132
  ```ts
134
- import { defineConfig } from "@lynx-js/rspeedy";
133
+ import { defineConfig } from '@lynx-js/rspeedy';
135
134
 
136
135
  export default defineConfig({
137
136
  output: {
138
137
  inlineScripts: ({ name, size }) => {
139
- return name.includes("foo") && size < 1000;
138
+ return name.includes('foo') && size < 1000;
140
139
  },
141
140
  },
142
141
  });
@@ -191,6 +190,7 @@
191
190
  - feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))
192
191
 
193
192
  Now use support the following usage
193
+
194
194
  - mainthread event
195
195
  - mainthread ref
196
196
  - runOnMainThread/runOnBackground
@@ -219,7 +219,7 @@
219
219
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
220
220
 
221
221
  ```js
222
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
222
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
223
223
 
224
224
  export default forwardRef(function App(_, ref) {
225
225
  useImperativeHandle(ref, () => {
@@ -227,7 +227,7 @@
227
227
  return {
228
228
  name() {
229
229
  // This should be considered as background only
230
- console.info("This should not exist in main-thread");
230
+ console.info('This should not exist in main-thread');
231
231
  },
232
232
  };
233
233
  });
@@ -287,14 +287,14 @@
287
287
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
288
288
 
289
289
  ```js
290
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
291
- import { defineConfig } from "@lynx-js/rspeedy";
290
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
291
+ import { defineConfig } from '@lynx-js/rspeedy';
292
292
 
293
293
  export default defineConfig({
294
294
  plugins: [
295
295
  pluginReactLynx({
296
296
  defineDCE: {
297
- __SOME_FALSE_DEFINE__: "false",
297
+ __SOME_FALSE_DEFINE__: 'false',
298
298
  },
299
299
  }),
300
300
  ],
@@ -306,20 +306,20 @@
306
306
  For example, `import` initialized by dead code will be removed:
307
307
 
308
308
  ```js
309
- import { foo } from "bar";
309
+ import { foo } from 'bar';
310
310
 
311
311
  if (__SOME_FALSE_DEFINE__) {
312
312
  foo();
313
- console.log("dead code");
313
+ console.log('dead code');
314
314
  } else {
315
- console.log("reachable code");
315
+ console.log('reachable code');
316
316
  }
317
317
  ```
318
318
 
319
319
  will be transformed to:
320
320
 
321
321
  ```js
322
- console.log("reachable code");
322
+ console.log('reachable code');
323
323
  ```
324
324
 
325
325
  ## 0.6.0
@@ -329,14 +329,14 @@
329
329
  - a30c83d: Add `compat.removeComponentAttrRegex`.
330
330
 
331
331
  ```js
332
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
333
- import { defineConfig } from "@lynx-js/rspeedy";
332
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
333
+ import { defineConfig } from '@lynx-js/rspeedy';
334
334
 
335
335
  export default defineConfig({
336
336
  plugins: [
337
337
  pluginReactLynx({
338
338
  compat: {
339
- removeComponentAttrRegex: "YOUR REGEX",
339
+ removeComponentAttrRegex: 'YOUR REGEX',
340
340
  },
341
341
  }),
342
342
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.9.3-canary-20260522-11ef105e",
3
+ "version": "0.9.3",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -42,11 +42,11 @@
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.1",
46
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.121.1-canary-20260522-11ef105e",
47
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.11.2-canary-20260522-11ef105e",
45
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.121.1",
46
+ "@lynx-js/test-tools": "0.0.0",
48
47
  "@lynx-js/vitest-setup": "0.0.0",
49
- "@lynx-js/test-tools": "0.0.0"
48
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.11.2",
49
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.7.1"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@lynx-js/template-webpack-plugin": "*"