@lynx-js/react-webpack-plugin 0.6.18 → 0.6.19

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
+ ## 0.6.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Be compat with `@lynx-js/react` v0.112.0 ([#1323](https://github.com/lynx-family/lynx-stack/pull/1323))
8
+
9
+ - Fix `REACT_PROFILE` not taking effect. ([#1306](https://github.com/lynx-family/lynx-stack/pull/1306))
10
+
3
11
  ## 0.6.18
4
12
 
5
13
  ### 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(options.profile
107
- ?? process.env['REACT_PROFILE']
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin",
3
- "version": "0.6.18",
3
+ "version": "0.6.19",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -38,18 +38,18 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@microsoft/api-extractor": "7.52.8",
41
- "@rspack/core": "1.4.2",
41
+ "@rspack/core": "1.4.8",
42
42
  "css-loader": "^7.1.2",
43
43
  "swc-loader": "^0.2.6",
44
44
  "webpack": "^5.99.9",
45
45
  "@lynx-js/css-extract-webpack-plugin": "0.6.0",
46
- "@lynx-js/react": "0.111.0",
47
- "@lynx-js/template-webpack-plugin": "0.8.1",
46
+ "@lynx-js/react": "0.112.0",
47
+ "@lynx-js/template-webpack-plugin": "0.8.2",
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": {