@lynx-js/react-webpack-plugin-canary 0.6.11 → 0.6.12-canary-20250424-5a3d9afe
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.
- package/CHANGELOG.md +22 -12
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @lynx-js/react-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.12-canary-20250424134746-5a3d9afe52ba639987db124ca35580261e0718b5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support @lynx-js/react v0.107.0 ([#438](https://github.com/lynx-family/lynx-stack/pull/438))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`6ebc02c`](https://github.com/lynx-family/lynx-stack/commit/6ebc02ca4936aa6047889798cd271b1f0aa9163f), [`6a5fc80`](https://github.com/lynx-family/lynx-stack/commit/6a5fc80716e668bacf4ce4ff59c569683ace0ba2), [`78aa569`](https://github.com/lynx-family/lynx-stack/commit/78aa5699328c6793bd0bfa44f8491be1bc8bed5f), [`f3afaf6`](https://github.com/lynx-family/lynx-stack/commit/f3afaf6c7919d3fe60ac2dfcd8af77178436f785), [`8643f34`](https://github.com/lynx-family/lynx-stack/commit/8643f34a4d808cbce011aeb2e28fdd14d064d272), [`0a781fd`](https://github.com/lynx-family/lynx-stack/commit/0a781fd406823c9dbfdc9163515313c2d60c6ee1)]:
|
|
10
|
+
- @lynx-js/react@0.107.0-canary-20250424134746-5a3d9afe52ba639987db124ca35580261e0718b5
|
|
11
|
+
- @lynx-js/template-webpack-plugin@0.6.10-canary-20250424134746-5a3d9afe52ba639987db124ca35580261e0718b5
|
|
12
|
+
|
|
3
13
|
## 0.6.11
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -36,7 +46,7 @@
|
|
|
36
46
|
- Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
|
|
37
47
|
|
|
38
48
|
```js
|
|
39
|
-
import { forwardRef, useImperativeHandle } from
|
|
49
|
+
import { forwardRef, useImperativeHandle } from "@lynx-js/react";
|
|
40
50
|
|
|
41
51
|
export default forwardRef(function App(_, ref) {
|
|
42
52
|
useImperativeHandle(ref, () => {
|
|
@@ -44,7 +54,7 @@
|
|
|
44
54
|
return {
|
|
45
55
|
name() {
|
|
46
56
|
// This should be considered as background only
|
|
47
|
-
console.info(
|
|
57
|
+
console.info("This should not exist in main-thread");
|
|
48
58
|
},
|
|
49
59
|
};
|
|
50
60
|
});
|
|
@@ -104,14 +114,14 @@
|
|
|
104
114
|
- e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
|
|
105
115
|
|
|
106
116
|
```js
|
|
107
|
-
import { pluginReactLynx } from
|
|
108
|
-
import { defineConfig } from
|
|
117
|
+
import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
|
|
118
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
109
119
|
|
|
110
120
|
export default defineConfig({
|
|
111
121
|
plugins: [
|
|
112
122
|
pluginReactLynx({
|
|
113
123
|
defineDCE: {
|
|
114
|
-
__SOME_FALSE_DEFINE__:
|
|
124
|
+
__SOME_FALSE_DEFINE__: "false",
|
|
115
125
|
},
|
|
116
126
|
}),
|
|
117
127
|
],
|
|
@@ -123,20 +133,20 @@
|
|
|
123
133
|
For example, `import` initialized by dead code will be removed:
|
|
124
134
|
|
|
125
135
|
```js
|
|
126
|
-
import { foo } from
|
|
136
|
+
import { foo } from "bar";
|
|
127
137
|
|
|
128
138
|
if (__SOME_FALSE_DEFINE__) {
|
|
129
139
|
foo();
|
|
130
|
-
console.log(
|
|
140
|
+
console.log("dead code");
|
|
131
141
|
} else {
|
|
132
|
-
console.log(
|
|
142
|
+
console.log("reachable code");
|
|
133
143
|
}
|
|
134
144
|
```
|
|
135
145
|
|
|
136
146
|
will be transformed to:
|
|
137
147
|
|
|
138
148
|
```js
|
|
139
|
-
console.log(
|
|
149
|
+
console.log("reachable code");
|
|
140
150
|
```
|
|
141
151
|
|
|
142
152
|
## 0.6.0
|
|
@@ -146,14 +156,14 @@
|
|
|
146
156
|
- a30c83d: Add `compat.removeComponentAttrRegex`.
|
|
147
157
|
|
|
148
158
|
```js
|
|
149
|
-
import { pluginReactLynx } from
|
|
150
|
-
import { defineConfig } from
|
|
159
|
+
import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
|
|
160
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
151
161
|
|
|
152
162
|
export default defineConfig({
|
|
153
163
|
plugins: [
|
|
154
164
|
pluginReactLynx({
|
|
155
165
|
compat: {
|
|
156
|
-
removeComponentAttrRegex:
|
|
166
|
+
removeComponentAttrRegex: "YOUR REGEX",
|
|
157
167
|
},
|
|
158
168
|
}),
|
|
159
169
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-webpack-plugin-canary",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12-canary-20250424-5a3d9afe",
|
|
4
4
|
"description": "A webpack plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"tiny-invariant": "^1.3.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-extractor": "7.52.
|
|
40
|
+
"@microsoft/api-extractor": "7.52.5",
|
|
41
41
|
"@rspack/core": "1.3.5",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"swc-loader": "^0.2.6",
|
|
44
44
|
"webpack": "^5.99.5",
|
|
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.
|
|
47
|
-
"@lynx-js/
|
|
46
|
+
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.10-canary-20250424-5a3d9afe",
|
|
47
|
+
"@lynx-js/test-tools": "0.0.0",
|
|
48
48
|
"@lynx-js/vitest-setup": "0.0.0",
|
|
49
|
-
"@lynx-js/
|
|
49
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.107.0-canary-20250424-5a3d9afe"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@lynx-js/react": "*",
|