@lynx-js/react-webpack-plugin-canary 0.6.10-canary-20250331-e295379a → 0.6.10

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,6 +1,6 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.6.10-canary-20250331083950-e295379ac6303fc6cd9fd475b20947f4ecbdbc80
3
+ ## 0.6.10
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -10,10 +10,6 @@
10
10
 
11
11
  - Fix issue where loading a lazy bundle fails if it does not return a webpack chunk. ([#365](https://github.com/lynx-family/lynx-stack/pull/365))
12
12
 
13
- - Updated dependencies [[`f03bd4a`](https://github.com/lynx-family/lynx-stack/commit/f03bd4a62f81902ba55caf10df56447c89743e62), [`808ee60`](https://github.com/lynx-family/lynx-stack/commit/808ee6084c1b48496292c7af68d5baeeeb860051)]:
14
- - @lynx-js/template-webpack-plugin@0.6.7-canary-20250331083950-e295379ac6303fc6cd9fd475b20947f4ecbdbc80
15
- - @lynx-js/react@0.106.2-canary-20250331083950-e295379ac6303fc6cd9fd475b20947f4ecbdbc80
16
-
17
13
  ## 0.6.9
18
14
 
19
15
  ### Patch Changes
@@ -27,7 +23,7 @@
27
23
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
28
24
 
29
25
  ```js
30
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
26
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
31
27
 
32
28
  export default forwardRef(function App(_, ref) {
33
29
  useImperativeHandle(ref, () => {
@@ -35,7 +31,7 @@
35
31
  return {
36
32
  name() {
37
33
  // This should be considered as background only
38
- console.info("This should not exist in main-thread");
34
+ console.info('This should not exist in main-thread');
39
35
  },
40
36
  };
41
37
  });
@@ -95,14 +91,14 @@
95
91
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
96
92
 
97
93
  ```js
98
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
99
- import { defineConfig } from "@lynx-js/rspeedy";
94
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
95
+ import { defineConfig } from '@lynx-js/rspeedy';
100
96
 
101
97
  export default defineConfig({
102
98
  plugins: [
103
99
  pluginReactLynx({
104
100
  defineDCE: {
105
- __SOME_FALSE_DEFINE__: "false",
101
+ __SOME_FALSE_DEFINE__: 'false',
106
102
  },
107
103
  }),
108
104
  ],
@@ -114,20 +110,20 @@
114
110
  For example, `import` initialized by dead code will be removed:
115
111
 
116
112
  ```js
117
- import { foo } from "bar";
113
+ import { foo } from 'bar';
118
114
 
119
115
  if (__SOME_FALSE_DEFINE__) {
120
116
  foo();
121
- console.log("dead code");
117
+ console.log('dead code');
122
118
  } else {
123
- console.log("reachable code");
119
+ console.log('reachable code');
124
120
  }
125
121
  ```
126
122
 
127
123
  will be transformed to:
128
124
 
129
125
  ```js
130
- console.log("reachable code");
126
+ console.log('reachable code');
131
127
  ```
132
128
 
133
129
  ## 0.6.0
@@ -137,14 +133,14 @@
137
133
  - a30c83d: Add `compat.removeComponentAttrRegex`.
138
134
 
139
135
  ```js
140
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
141
- import { defineConfig } from "@lynx-js/rspeedy";
136
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
137
+ import { defineConfig } from '@lynx-js/rspeedy';
142
138
 
143
139
  export default defineConfig({
144
140
  plugins: [
145
141
  pluginReactLynx({
146
142
  compat: {
147
- removeComponentAttrRegex: "YOUR REGEX",
143
+ removeComponentAttrRegex: 'YOUR REGEX',
148
144
  },
149
145
  }),
150
146
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.6.10-canary-20250331-e295379a",
3
+ "version": "0.6.10",
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.98.0",
45
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.106.2-canary-20250331-e295379a",
46
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.2",
47
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.7-canary-20250331-e295379a",
45
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.7",
48
46
  "@lynx-js/test-tools": "0.0.0",
49
- "@lynx-js/vitest-setup": "0.0.0"
47
+ "@lynx-js/vitest-setup": "0.0.0",
48
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.106.2",
49
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.2"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@lynx-js/react": "*",