@lynx-js/react-webpack-plugin-canary 0.11.0 → 0.11.1-canary-20260818-1d08862e

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.11.1-canary-20260818031127-1d08862ef9a1883fe98f2b9f7dce59d092d14d68
4
+
5
+ ### Patch Changes
6
+
7
+ - Collect element templates from the background build as well, so a template the main-thread bundle does not reach is still registered for it. ([#3563](https://github.com/lynx-family/lynx-stack/pull/3563))
8
+
3
9
  ## 0.11.0
4
10
 
5
11
  ### Minor Changes
@@ -3,6 +3,7 @@
3
3
  // LICENSE file in the root directory of this source tree.
4
4
  import { createRequire } from 'node:module';
5
5
  import { DEFINES_FOR_SNAPSHOT_BUILD_INFO, DEFINES_FOR_WORKLET_BUILD_INFO, } from '../Defines.js';
6
+ import { ELEMENT_TEMPLATE_BUILD_INFO } from './main-thread.js';
6
7
  import { getBackgroundTransformOptions } from './options.js';
7
8
  const backgroundLoader = function (content, sourceMap) {
8
9
  const require = createRequire(import.meta.url);
@@ -78,6 +79,12 @@ const backgroundLoader = function (content, sourceMap) {
78
79
  }
79
80
  const buildInfo = this._module?.buildInfo;
80
81
  if (buildInfo) {
82
+ if (result.elementTemplates && result.elementTemplates.length > 0) {
83
+ buildInfo[ELEMENT_TEMPLATE_BUILD_INFO] = result.elementTemplates;
84
+ }
85
+ else {
86
+ delete buildInfo[ELEMENT_TEMPLATE_BUILD_INFO];
87
+ }
81
88
  if (result.definesForSnapshot) {
82
89
  buildInfo[DEFINES_FOR_SNAPSHOT_BUILD_INFO] = result.definesForSnapshot;
83
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-webpack-plugin-canary",
3
- "version": "0.11.0",
3
+ "version": "0.11.1-canary-20260818-1d08862e",
4
4
  "description": "A webpack plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -44,10 +44,10 @@
44
44
  "@rstest/core": "0.11.6",
45
45
  "css-loader": "^7.1.4",
46
46
  "swc-loader": "^0.2.7",
47
- "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.10.1",
47
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.124.1-canary-20260818-1d08862e",
48
48
  "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.15.1",
49
- "@lynx-js/test-tools": "0.0.0",
50
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.124.0"
49
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.10.1",
50
+ "@lynx-js/test-tools": "0.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@lynx-js/template-webpack-plugin": "*"