@lynx-js/react-webpack-plugin 0.6.8 → 0.6.9

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,11 @@
1
1
  # @lynx-js/react-webpack-plugin
2
2
 
3
+ ## 0.6.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Support `@lynx-js/react` v0.106.0. ([#239](https://github.com/lynx-family/lynx-stack/pull/239))
8
+
3
9
  ## 0.6.8
4
10
 
5
11
  ### Patch Changes
@@ -14,6 +14,10 @@ interface ReactWebpackPluginOptions {
14
14
  * {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.firstScreenSyncTiming}
15
15
  */
16
16
  firstScreenSyncTiming?: 'immediately' | 'jsReady';
17
+ /**
18
+ * {@inheritdoc @lynx-dev/react-rsbuild-plugin#PluginReactLynxOptions.enableSSR}
19
+ */
20
+ enableSSR?: boolean;
17
21
  /**
18
22
  * The chunk names to be considered as main thread chunks.
19
23
  */
@@ -73,6 +73,7 @@ class ReactWebpackPlugin {
73
73
  .freeze({
74
74
  disableCreateSelectorQueryIncompatibleWarning: false,
75
75
  firstScreenSyncTiming: 'immediately',
76
+ enableSSR: false,
76
77
  mainThreadChunks: [],
77
78
  experimental_isLazyBundle: false,
78
79
  }); }
@@ -105,6 +106,7 @@ class ReactWebpackPlugin {
105
106
  // TODO: config
106
107
  __EXTRACT_STR__: JSON.stringify(false),
107
108
  __FIRST_SCREEN_SYNC_TIMING__: JSON.stringify(options.firstScreenSyncTiming),
109
+ __ENABLE_SSR__: JSON.stringify(options.enableSSR),
108
110
  __DISABLE_CREATE_SELECTOR_QUERY_INCOMPATIBLE_WARNING__: JSON.stringify(options.disableCreateSelectorQueryIncompatibleWarning),
109
111
  }).apply(compiler);
110
112
  compiler.hooks.thisCompilation.tap(this.constructor.name, compilation => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
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.51.1",
41
- "@rspack/core": "1.2.8",
41
+ "@rspack/core": "1.3.0-beta.0",
42
42
  "css-loader": "^7.1.2",
43
43
  "swc-loader": "^0.2.6",
44
44
  "webpack": "^5.98.0",
45
+ "@lynx-js/react": "0.106.0",
45
46
  "@lynx-js/css-extract-webpack-plugin": "0.5.2",
46
- "@lynx-js/react": "0.105.2",
47
- "@lynx-js/template-webpack-plugin": "0.6.5",
47
+ "@lynx-js/template-webpack-plugin": "0.6.6",
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",
52
+ "@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0",
53
53
  "@lynx-js/template-webpack-plugin": "^0.4.0 || ^0.5.0 || ^0.6.0"
54
54
  },
55
55
  "peerDependenciesMeta": {