@lynx-js/react-webpack-plugin-canary 0.6.12-canary-20250427-0be475df → 0.6.12

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