@lynx-js/template-webpack-plugin-canary 0.9.2-canary-20251202-8b19aff9 → 0.9.2-canary-20251202-d2e290b6

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,6 +1,6 @@
1
1
  # @lynx-js/template-webpack-plugin
2
2
 
3
- ## 0.9.2-canary-20251202062355-8b19aff9dc56a5862449ddda5c40f15fd877a708
3
+ ## 0.9.2-canary-20251202114154-d2e290b67971ead5bedbcc1e34dd7f3bf4a6f5f3
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,6 +8,8 @@
8
8
 
9
9
  - Upgrade `@lynx-js/tasm` to `0.0.20`. ([#1943](https://github.com/lynx-family/lynx-stack/pull/1943))
10
10
 
11
+ - refactor: move web style info generation to the encode phase ([#1975](https://github.com/lynx-family/lynx-stack/pull/1975))
12
+
11
13
  ## 0.9.1
12
14
 
13
15
  ### Patch Changes
@@ -31,8 +31,6 @@ export class WebEncodePlugin {
31
31
  stage: WebEncodePlugin.BEFORE_ENCODE_HOOK_STAGE,
32
32
  }, (encodeOptions) => {
33
33
  const { encodeData } = encodeOptions;
34
- const { cssMap } = encodeData.css;
35
- const styleInfo = genStyleInfo(cssMap);
36
34
  const [name, content] = last(Object.entries(encodeData.manifest));
37
35
  if (!isDebug() && !isDev && !isRsdoctor()) {
38
36
  [
@@ -45,7 +43,6 @@ export class WebEncodePlugin {
45
43
  .forEach(asset => inlinedAssets.add(asset.name));
46
44
  }
47
45
  Object.assign(encodeData, {
48
- styleInfo,
49
46
  manifest: {
50
47
  // `app-service.js` is the entry point of a template.
51
48
  '/app-service.js': content,
@@ -66,7 +63,7 @@ export class WebEncodePlugin {
66
63
  }, ({ encodeOptions }) => {
67
64
  return {
68
65
  buffer: Buffer.from(JSON.stringify({
69
- styleInfo: encodeOptions['styleInfo'],
66
+ styleInfo: genStyleInfo(encodeOptions['css'].cssMap),
70
67
  manifest: encodeOptions.manifest,
71
68
  cardType: encodeOptions['cardType'],
72
69
  appType: encodeOptions['appType'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/template-webpack-plugin-canary",
3
- "version": "0.9.2-canary-20251202-8b19aff9",
3
+ "version": "0.9.2-canary-20251202-d2e290b6",
4
4
  "description": "Simplifies creation of Lynx template files to serve your webpack bundles",
5
5
  "keywords": [
6
6
  "webpack",