@lynx-js/react-webpack-plugin-canary 0.7.2 → 1.0.0-canary-20251208-a01fa58b

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 +22 -15
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
+ ## 1.0.0-canary-20251208100710-a01fa58b9801a6f163a067063ab448fc4fb0ea5a
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8cdb69d`](https://github.com/lynx-family/lynx-stack/commit/8cdb69d4b2cc3e9925a2494ee8a889d7af17e2e9)]:
8
+ - @lynx-js/template-webpack-plugin@0.10.0-canary-20251208100710-a01fa58b9801a6f163a067063ab448fc4fb0ea5a
9
+
3
10
  ## 0.7.2
4
11
 
5
12
  ### Patch Changes
@@ -60,16 +67,16 @@
60
67
  type InlineChunkConfig =
61
68
  | boolean
62
69
  | InlineChunkTest
63
- | { enable?: boolean | 'auto'; test: InlineChunkTest };
70
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
64
71
  ```
65
72
 
66
73
  ```ts
67
- import { defineConfig } from '@lynx-js/rspeedy';
74
+ import { defineConfig } from "@lynx-js/rspeedy";
68
75
 
69
76
  export default defineConfig({
70
77
  output: {
71
78
  inlineScripts: ({ name, size }) => {
72
- return name.includes('foo') && size < 1000;
79
+ return name.includes("foo") && size < 1000;
73
80
  },
74
81
  },
75
82
  });
@@ -153,7 +160,7 @@
153
160
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
154
161
 
155
162
  ```js
156
- import { forwardRef, useImperativeHandle } from '@lynx-js/react';
163
+ import { forwardRef, useImperativeHandle } from "@lynx-js/react";
157
164
 
158
165
  export default forwardRef(function App(_, ref) {
159
166
  useImperativeHandle(ref, () => {
@@ -161,7 +168,7 @@
161
168
  return {
162
169
  name() {
163
170
  // This should be considered as background only
164
- console.info('This should not exist in main-thread');
171
+ console.info("This should not exist in main-thread");
165
172
  },
166
173
  };
167
174
  });
@@ -221,14 +228,14 @@
221
228
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
222
229
 
223
230
  ```js
224
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
225
- import { defineConfig } from '@lynx-js/rspeedy';
231
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
232
+ import { defineConfig } from "@lynx-js/rspeedy";
226
233
 
227
234
  export default defineConfig({
228
235
  plugins: [
229
236
  pluginReactLynx({
230
237
  defineDCE: {
231
- __SOME_FALSE_DEFINE__: 'false',
238
+ __SOME_FALSE_DEFINE__: "false",
232
239
  },
233
240
  }),
234
241
  ],
@@ -240,20 +247,20 @@
240
247
  For example, `import` initialized by dead code will be removed:
241
248
 
242
249
  ```js
243
- import { foo } from 'bar';
250
+ import { foo } from "bar";
244
251
 
245
252
  if (__SOME_FALSE_DEFINE__) {
246
253
  foo();
247
- console.log('dead code');
254
+ console.log("dead code");
248
255
  } else {
249
- console.log('reachable code');
256
+ console.log("reachable code");
250
257
  }
251
258
  ```
252
259
 
253
260
  will be transformed to:
254
261
 
255
262
  ```js
256
- console.log('reachable code');
263
+ console.log("reachable code");
257
264
  ```
258
265
 
259
266
  ## 0.6.0
@@ -263,14 +270,14 @@
263
270
  - a30c83d: Add `compat.removeComponentAttrRegex`.
264
271
 
265
272
  ```js
266
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
267
- import { defineConfig } from '@lynx-js/rspeedy';
273
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
274
+ import { defineConfig } from "@lynx-js/rspeedy";
268
275
 
269
276
  export default defineConfig({
270
277
  plugins: [
271
278
  pluginReactLynx({
272
279
  compat: {
273
- removeComponentAttrRegex: 'YOUR REGEX',
280
+ removeComponentAttrRegex: "YOUR REGEX",
274
281
  },
275
282
  }),
276
283
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.7.2",
3
+ "version": "1.0.0-canary-20251208-a01fa58b",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@microsoft/api-extractor": "7.52.15",
41
- "@rspack/core": "1.6.1",
41
+ "@rspack/core": "1.6.5",
42
42
  "css-loader": "^7.1.2",
43
43
  "swc-loader": "^0.2.6",
44
44
  "webpack": "^5.102.0",
45
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.4",
46
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.4",
47
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.1",
45
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.7.0-canary-20251208-a01fa58b",
46
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.10.0-canary-20251208-a01fa58b",
48
47
  "@lynx-js/vitest-setup": "0.0.0",
48
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.115.1-canary-20251208-a01fa58b",
49
49
  "@lynx-js/test-tools": "0.0.0"
50
50
  },
51
51
  "peerDependencies": {