@lynx-js/react-webpack-plugin 0.6.18 → 0.6.20
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 +15 -0
- package/lib/ReactWebpackPlugin.js +4 -3
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lynx-js/react-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`aaca8f9`](https://github.com/lynx-family/lynx-stack/commit/aaca8f91d177061c7b0430cc5cb21a3602897534)]:
|
|
8
|
+
- @lynx-js/webpack-runtime-globals@0.0.6
|
|
9
|
+
|
|
10
|
+
## 0.6.19
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Be compat with `@lynx-js/react` v0.112.0 ([#1323](https://github.com/lynx-family/lynx-stack/pull/1323))
|
|
15
|
+
|
|
16
|
+
- Fix `REACT_PROFILE` not taking effect. ([#1306](https://github.com/lynx-family/lynx-stack/pull/1306))
|
|
17
|
+
|
|
3
18
|
## 0.6.18
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -103,9 +103,11 @@ class ReactWebpackPlugin {
|
|
|
103
103
|
__DEV__: JSON.stringify(compiler.options.mode === 'development'),
|
|
104
104
|
// We enable profile by default in development.
|
|
105
105
|
// It can also be disabled by environment variable `REACT_PROFILE=false`
|
|
106
|
-
__PROFILE__: JSON.stringify(
|
|
107
|
-
??
|
|
106
|
+
__PROFILE__: JSON.stringify(process.env['REACT_PROFILE']
|
|
107
|
+
?? options.profile
|
|
108
108
|
?? compiler.options.mode === 'development'),
|
|
109
|
+
// User can enable ALog by environment variable `REACT_ALOG=true`
|
|
110
|
+
__ALOG__: JSON.stringify(Boolean(process.env['REACT_ALOG'])),
|
|
109
111
|
__EXTRACT_STR__: JSON.stringify(Boolean(options.extractStr)),
|
|
110
112
|
__FIRST_SCREEN_SYNC_TIMING__: JSON.stringify(options.firstScreenSyncTiming),
|
|
111
113
|
__ENABLE_SSR__: JSON.stringify(options.enableSSR),
|
|
@@ -159,7 +161,6 @@ class ReactWebpackPlugin {
|
|
|
159
161
|
const runtimeFile = require.resolve(path);
|
|
160
162
|
lepusCode.chunks.push({
|
|
161
163
|
name: 'worklet-runtime',
|
|
162
|
-
// @ts-expect-error Rspack x Webpack sources not match
|
|
163
164
|
source: new RawSource(fs.readFileSync(runtimeFile, 'utf8')),
|
|
164
165
|
info: {
|
|
165
166
|
['lynx:main-thread']: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-webpack-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.20",
|
|
4
4
|
"description": "A webpack plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tiny-invariant": "^1.3.3",
|
|
37
|
-
"@lynx-js/webpack-runtime-globals": "0.0.
|
|
37
|
+
"@lynx-js/webpack-runtime-globals": "0.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-extractor": "7.52.
|
|
41
|
-
"@rspack/core": "1.4.
|
|
40
|
+
"@microsoft/api-extractor": "7.52.11",
|
|
41
|
+
"@rspack/core": "1.4.11",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"swc-loader": "^0.2.6",
|
|
44
|
-
"webpack": "^5.
|
|
45
|
-
"@lynx-js/css-extract-webpack-plugin": "0.6.
|
|
46
|
-
"@lynx-js/react": "0.
|
|
47
|
-
"@lynx-js/template-webpack-plugin": "0.8.
|
|
44
|
+
"webpack": "^5.101.3",
|
|
45
|
+
"@lynx-js/css-extract-webpack-plugin": "0.6.2",
|
|
46
|
+
"@lynx-js/react": "0.112.4",
|
|
47
|
+
"@lynx-js/template-webpack-plugin": "0.8.5",
|
|
48
48
|
"@lynx-js/test-tools": "0.0.0",
|
|
49
49
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0 || ^0.110.0 || ^0.111.0",
|
|
52
|
+
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0 || ^0.110.0 || ^0.111.0 || ^0.112.0",
|
|
53
53
|
"@lynx-js/template-webpack-plugin": "^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|