@lynx-js/react-webpack-plugin-canary 0.7.4-canary-20260221-484c563b → 0.7.4

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 +16 -16
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.7.4-canary-20260221042342-484c563b1829f1d69b07702cd5306d819cbcaf91
3
+ ## 0.7.4
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -72,16 +72,16 @@
72
72
  type InlineChunkConfig =
73
73
  | boolean
74
74
  | InlineChunkTest
75
- | { enable?: boolean | "auto"; test: InlineChunkTest };
75
+ | { enable?: boolean | 'auto'; test: InlineChunkTest };
76
76
  ```
77
77
 
78
78
  ```ts
79
- import { defineConfig } from "@lynx-js/rspeedy";
79
+ import { defineConfig } from '@lynx-js/rspeedy';
80
80
 
81
81
  export default defineConfig({
82
82
  output: {
83
83
  inlineScripts: ({ name, size }) => {
84
- return name.includes("foo") && size < 1000;
84
+ return name.includes('foo') && size < 1000;
85
85
  },
86
86
  },
87
87
  });
@@ -165,7 +165,7 @@
165
165
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
166
166
 
167
167
  ```js
168
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
168
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
169
169
 
170
170
  export default forwardRef(function App(_, ref) {
171
171
  useImperativeHandle(ref, () => {
@@ -173,7 +173,7 @@
173
173
  return {
174
174
  name() {
175
175
  // This should be considered as background only
176
- console.info("This should not exist in main-thread");
176
+ console.info('This should not exist in main-thread');
177
177
  },
178
178
  };
179
179
  });
@@ -233,14 +233,14 @@
233
233
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
234
234
 
235
235
  ```js
236
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
237
- import { defineConfig } from "@lynx-js/rspeedy";
236
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
237
+ import { defineConfig } from '@lynx-js/rspeedy';
238
238
 
239
239
  export default defineConfig({
240
240
  plugins: [
241
241
  pluginReactLynx({
242
242
  defineDCE: {
243
- __SOME_FALSE_DEFINE__: "false",
243
+ __SOME_FALSE_DEFINE__: 'false',
244
244
  },
245
245
  }),
246
246
  ],
@@ -252,20 +252,20 @@
252
252
  For example, `import` initialized by dead code will be removed:
253
253
 
254
254
  ```js
255
- import { foo } from "bar";
255
+ import { foo } from 'bar';
256
256
 
257
257
  if (__SOME_FALSE_DEFINE__) {
258
258
  foo();
259
- console.log("dead code");
259
+ console.log('dead code');
260
260
  } else {
261
- console.log("reachable code");
261
+ console.log('reachable code');
262
262
  }
263
263
  ```
264
264
 
265
265
  will be transformed to:
266
266
 
267
267
  ```js
268
- console.log("reachable code");
268
+ console.log('reachable code');
269
269
  ```
270
270
 
271
271
  ## 0.6.0
@@ -275,14 +275,14 @@
275
275
  - a30c83d: Add `compat.removeComponentAttrRegex`.
276
276
 
277
277
  ```js
278
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
279
- import { defineConfig } from "@lynx-js/rspeedy";
278
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
279
+ import { defineConfig } from '@lynx-js/rspeedy';
280
280
 
281
281
  export default defineConfig({
282
282
  plugins: [
283
283
  pluginReactLynx({
284
284
  compat: {
285
- removeComponentAttrRegex: "YOUR REGEX",
285
+ removeComponentAttrRegex: 'YOUR REGEX',
286
286
  },
287
287
  }),
288
288
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.7.4-canary-20260221-484c563b",
3
+ "version": "0.7.4",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -42,10 +42,10 @@
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/react": "npm:@lynx-js/react-canary@0.116.3-canary-20260221-484c563b",
47
45
  "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.10.3",
48
46
  "@lynx-js/test-tools": "0.0.0",
47
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.116.3",
48
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.7.0",
49
49
  "@lynx-js/vitest-setup": "0.0.0"
50
50
  },
51
51
  "peerDependencies": {