@lynx-js/react-webpack-plugin-canary 0.6.12 → 0.6.13-canary-20250428-9ad394ea

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 +21 -12
  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.6.13-canary-20250428125552-9ad394ea9ef28688a3b810b4051868b2a28eb7de
4
+
5
+ ### Patch Changes
6
+
7
+ - Support `@lynx-js/react` v0.108.0. ([#649](https://github.com/lynx-family/lynx-stack/pull/649))
8
+
9
+ - Updated dependencies [[`f8d369d`](https://github.com/lynx-family/lynx-stack/commit/f8d369ded802f8d7b9b859b1f150015d65773b0f)]:
10
+ - @lynx-js/react@0.108.0-canary-20250428125552-9ad394ea9ef28688a3b810b4051868b2a28eb7de
11
+
3
12
  ## 0.6.12
4
13
 
5
14
  ### Patch Changes
@@ -42,7 +51,7 @@
42
51
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
43
52
 
44
53
  ```js
45
- import { forwardRef, useImperativeHandle } from '@lynx-js/react';
54
+ import { forwardRef, useImperativeHandle } from "@lynx-js/react";
46
55
 
47
56
  export default forwardRef(function App(_, ref) {
48
57
  useImperativeHandle(ref, () => {
@@ -50,7 +59,7 @@
50
59
  return {
51
60
  name() {
52
61
  // This should be considered as background only
53
- console.info('This should not exist in main-thread');
62
+ console.info("This should not exist in main-thread");
54
63
  },
55
64
  };
56
65
  });
@@ -110,14 +119,14 @@
110
119
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
111
120
 
112
121
  ```js
113
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
114
- import { defineConfig } from '@lynx-js/rspeedy';
122
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
123
+ import { defineConfig } from "@lynx-js/rspeedy";
115
124
 
116
125
  export default defineConfig({
117
126
  plugins: [
118
127
  pluginReactLynx({
119
128
  defineDCE: {
120
- __SOME_FALSE_DEFINE__: 'false',
129
+ __SOME_FALSE_DEFINE__: "false",
121
130
  },
122
131
  }),
123
132
  ],
@@ -129,20 +138,20 @@
129
138
  For example, `import` initialized by dead code will be removed:
130
139
 
131
140
  ```js
132
- import { foo } from 'bar';
141
+ import { foo } from "bar";
133
142
 
134
143
  if (__SOME_FALSE_DEFINE__) {
135
144
  foo();
136
- console.log('dead code');
145
+ console.log("dead code");
137
146
  } else {
138
- console.log('reachable code');
147
+ console.log("reachable code");
139
148
  }
140
149
  ```
141
150
 
142
151
  will be transformed to:
143
152
 
144
153
  ```js
145
- console.log('reachable code');
154
+ console.log("reachable code");
146
155
  ```
147
156
 
148
157
  ## 0.6.0
@@ -152,14 +161,14 @@
152
161
  - a30c83d: Add `compat.removeComponentAttrRegex`.
153
162
 
154
163
  ```js
155
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
156
- import { defineConfig } from '@lynx-js/rspeedy';
164
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
165
+ import { defineConfig } from "@lynx-js/rspeedy";
157
166
 
158
167
  export default defineConfig({
159
168
  plugins: [
160
169
  pluginReactLynx({
161
170
  compat: {
162
- removeComponentAttrRegex: 'YOUR REGEX',
171
+ removeComponentAttrRegex: "YOUR REGEX",
163
172
  },
164
173
  }),
165
174
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.6.12",
3
+ "version": "0.6.13-canary-20250428-9ad394ea",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -43,10 +43,10 @@
43
43
  "swc-loader": "^0.2.6",
44
44
  "webpack": "^5.99.6",
45
45
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.3",
46
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.10",
47
- "@lynx-js/vitest-setup": "0.0.0",
46
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.108.0-canary-20250428-9ad394ea",
48
47
  "@lynx-js/test-tools": "0.0.0",
49
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.107.0"
48
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.10",
49
+ "@lynx-js/vitest-setup": "0.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@lynx-js/react": "*",