@lynx-js/react-webpack-plugin-canary 0.6.8-canary-20250314-d253a8f1 → 0.6.8

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,13 +1,13 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
- ## 0.6.8-canary-20250314162405-d253a8f1d07ad26dc90a5712b78d73185ed97e2d
3
+ ## 0.6.8
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Shake `useImperativeHandle` on the main-thread by default. ([#153](https://github.com/lynx-family/lynx-stack/pull/153))
8
8
 
9
9
  ```js
10
- import { forwardRef, useImperativeHandle } from "@lynx-js/react";
10
+ import { forwardRef, useImperativeHandle } from '@lynx-js/react';
11
11
 
12
12
  export default forwardRef(function App(_, ref) {
13
13
  useImperativeHandle(ref, () => {
@@ -15,7 +15,7 @@
15
15
  return {
16
16
  name() {
17
17
  // This should be considered as background only
18
- console.info("This should not exist in main-thread");
18
+ console.info('This should not exist in main-thread');
19
19
  },
20
20
  };
21
21
  });
@@ -24,10 +24,6 @@
24
24
 
25
25
  - Avoid wrapping standalone lazy bundles with `var globDynamicComponentEntry`. ([#177](https://github.com/lynx-family/lynx-stack/pull/177))
26
26
 
27
- - Updated dependencies [[`ea27f28`](https://github.com/lynx-family/lynx-stack/commit/ea27f28b5a07acc12740e351f891d5e9af3b728c), [`48f85c6`](https://github.com/lynx-family/lynx-stack/commit/48f85c6b062dde1c4ef714b289c47e6fd0268d89), [`426f48e`](https://github.com/lynx-family/lynx-stack/commit/426f48e83698465af84c2c0648ffff0f2733c966), [`e51097c`](https://github.com/lynx-family/lynx-stack/commit/e51097c128a58c3c7c8c824ced1cff6df2f9db85), [`315ba3b`](https://github.com/lynx-family/lynx-stack/commit/315ba3b7fac7872884edcdd5ef3e6d6230bbe115)]:
28
- - @lynx-js/react@0.105.2-canary-20250314162405-d253a8f1d07ad26dc90a5712b78d73185ed97e2d
29
- - @lynx-js/template-webpack-plugin@0.6.5-canary-20250314162405-d253a8f1d07ad26dc90a5712b78d73185ed97e2d
30
-
31
27
  ## 0.6.7
32
28
 
33
29
  ### Patch Changes
@@ -79,14 +75,14 @@
79
75
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
80
76
 
81
77
  ```js
82
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
83
- import { defineConfig } from "@lynx-js/rspeedy";
78
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
79
+ import { defineConfig } from '@lynx-js/rspeedy';
84
80
 
85
81
  export default defineConfig({
86
82
  plugins: [
87
83
  pluginReactLynx({
88
84
  defineDCE: {
89
- __SOME_FALSE_DEFINE__: "false",
85
+ __SOME_FALSE_DEFINE__: 'false',
90
86
  },
91
87
  }),
92
88
  ],
@@ -98,20 +94,20 @@
98
94
  For example, `import` initialized by dead code will be removed:
99
95
 
100
96
  ```js
101
- import { foo } from "bar";
97
+ import { foo } from 'bar';
102
98
 
103
99
  if (__SOME_FALSE_DEFINE__) {
104
100
  foo();
105
- console.log("dead code");
101
+ console.log('dead code');
106
102
  } else {
107
- console.log("reachable code");
103
+ console.log('reachable code');
108
104
  }
109
105
  ```
110
106
 
111
107
  will be transformed to:
112
108
 
113
109
  ```js
114
- console.log("reachable code");
110
+ console.log('reachable code');
115
111
  ```
116
112
 
117
113
  ## 0.6.0
@@ -121,14 +117,14 @@
121
117
  - a30c83d: Add `compat.removeComponentAttrRegex`.
122
118
 
123
119
  ```js
124
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
125
- import { defineConfig } from "@lynx-js/rspeedy";
120
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
121
+ import { defineConfig } from '@lynx-js/rspeedy';
126
122
 
127
123
  export default defineConfig({
128
124
  plugins: [
129
125
  pluginReactLynx({
130
126
  compat: {
131
- removeComponentAttrRegex: "YOUR REGEX",
127
+ removeComponentAttrRegex: 'YOUR REGEX',
132
128
  },
133
129
  }),
134
130
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.6.8-canary-20250314-d253a8f1",
3
+ "version": "0.6.8",
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.105.2-canary-20250314-d253a8f1",
46
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.5-canary-20250314-d253a8f1",
45
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.2",
46
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.105.2",
47
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.6.5",
47
48
  "@lynx-js/test-tools": "0.0.0",
48
- "@lynx-js/vitest-setup": "0.0.0",
49
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.5.2-canary-20250314-d253a8f1"
49
+ "@lynx-js/vitest-setup": "0.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@lynx-js/react": "*",