@lynx-js/react-webpack-plugin-canary 0.6.7-canary-20250309-870106fc → 0.6.7
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 +13 -15
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
# @lynx-js/react-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.6.7
|
|
3
|
+
## 0.6.7
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
|
|
8
8
|
|
|
9
|
-
- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)
|
|
10
|
-
- @lynx-js/
|
|
11
|
-
- @lynx-js/webpack-runtime-globals@0.0.5-canary-20250309084456-870106fcb00d54a9f952be14c9bdcc592099863c
|
|
12
|
-
- @lynx-js/react@0.105.1-canary-20250309084456-870106fcb00d54a9f952be14c9bdcc592099863c
|
|
9
|
+
- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
|
|
10
|
+
- @lynx-js/webpack-runtime-globals@0.0.5
|
|
13
11
|
|
|
14
12
|
## 0.6.6
|
|
15
13
|
|
|
@@ -53,14 +51,14 @@
|
|
|
53
51
|
- e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
|
|
54
52
|
|
|
55
53
|
```js
|
|
56
|
-
import { pluginReactLynx } from
|
|
57
|
-
import { defineConfig } from
|
|
54
|
+
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
|
|
55
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
58
56
|
|
|
59
57
|
export default defineConfig({
|
|
60
58
|
plugins: [
|
|
61
59
|
pluginReactLynx({
|
|
62
60
|
defineDCE: {
|
|
63
|
-
__SOME_FALSE_DEFINE__:
|
|
61
|
+
__SOME_FALSE_DEFINE__: 'false',
|
|
64
62
|
},
|
|
65
63
|
}),
|
|
66
64
|
],
|
|
@@ -72,20 +70,20 @@
|
|
|
72
70
|
For example, `import` initialized by dead code will be removed:
|
|
73
71
|
|
|
74
72
|
```js
|
|
75
|
-
import { foo } from
|
|
73
|
+
import { foo } from 'bar';
|
|
76
74
|
|
|
77
75
|
if (__SOME_FALSE_DEFINE__) {
|
|
78
76
|
foo();
|
|
79
|
-
console.log(
|
|
77
|
+
console.log('dead code');
|
|
80
78
|
} else {
|
|
81
|
-
console.log(
|
|
79
|
+
console.log('reachable code');
|
|
82
80
|
}
|
|
83
81
|
```
|
|
84
82
|
|
|
85
83
|
will be transformed to:
|
|
86
84
|
|
|
87
85
|
```js
|
|
88
|
-
console.log(
|
|
86
|
+
console.log('reachable code');
|
|
89
87
|
```
|
|
90
88
|
|
|
91
89
|
## 0.6.0
|
|
@@ -95,14 +93,14 @@
|
|
|
95
93
|
- a30c83d: Add `compat.removeComponentAttrRegex`.
|
|
96
94
|
|
|
97
95
|
```js
|
|
98
|
-
import { pluginReactLynx } from
|
|
99
|
-
import { defineConfig } from
|
|
96
|
+
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
|
|
97
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
100
98
|
|
|
101
99
|
export default defineConfig({
|
|
102
100
|
plugins: [
|
|
103
101
|
pluginReactLynx({
|
|
104
102
|
compat: {
|
|
105
|
-
removeComponentAttrRegex:
|
|
103
|
+
removeComponentAttrRegex: 'YOUR REGEX',
|
|
106
104
|
},
|
|
107
105
|
}),
|
|
108
106
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-webpack-plugin-canary",
|
|
3
|
-
"version": "0.6.7
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "A webpack plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5
|
|
36
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5",
|
|
37
37
|
"tiny-invariant": "^1.3.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"swc-loader": "^0.2.6",
|
|
44
44
|
"webpack": "^5.98.0",
|
|
45
|
-
"@lynx-js/
|
|
46
|
-
"@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.1
|
|
47
|
-
"@lynx-js/
|
|
45
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.105.1",
|
|
46
|
+
"@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.1",
|
|
47
|
+
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.4",
|
|
48
48
|
"@lynx-js/vitest-setup": "0.0.0",
|
|
49
|
-
"@lynx-js/
|
|
49
|
+
"@lynx-js/test-tools": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@lynx-js/react": "*",
|