@lynx-js/template-webpack-plugin-canary 0.8.5 → 0.8.6-canary-20250915-f24eb4a2

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/template-webpack-plugin
2
2
 
3
+ ## 0.8.6-canary-20250915034450-f24eb4a20111a1e1ab4d485d866d5859100902ad
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: add appType field for lazy bundle for web ([#1738](https://github.com/lynx-family/lynx-stack/pull/1738))
8
+
3
9
  ## 0.8.5
4
10
 
5
11
  ### Patch Changes
@@ -60,16 +66,16 @@
60
66
  type InlineChunkConfig =
61
67
  | boolean
62
68
  | InlineChunkTest
63
- | { enable?: boolean | 'auto'; test: InlineChunkTest };
69
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
64
70
  ```
65
71
 
66
72
  ```ts
67
- import { defineConfig } from '@lynx-js/rspeedy';
73
+ import { defineConfig } from "@lynx-js/rspeedy";
68
74
 
69
75
  export default defineConfig({
70
76
  output: {
71
77
  inlineScripts: ({ name, size }) => {
72
- return name.includes('foo') && size < 1000;
78
+ return name.includes("foo") && size < 1000;
73
79
  },
74
80
  },
75
81
  });
@@ -119,7 +125,7 @@
119
125
  example:
120
126
 
121
127
  ```js
122
- import { defineConfig } from '@lynx-js/rspeedy';
128
+ import { defineConfig } from "@lynx-js/rspeedy";
123
129
 
124
130
  export default defineConfig({
125
131
  output: {
@@ -214,7 +220,7 @@
214
220
  - Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
215
221
 
216
222
  ```js
217
- import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
223
+ import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
218
224
 
219
225
  new LynxTemplatePlugin({
220
226
  defaultOverflowVisible: false,
@@ -233,10 +239,10 @@
233
239
  - 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
234
240
 
235
241
  ```js
236
- import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
242
+ import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
237
243
 
238
244
  const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
239
- hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
245
+ hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
240
246
  console.log(entryNames);
241
247
  });
242
248
  ```
@@ -52,6 +52,7 @@ export class WebEncodePlugin {
52
52
  },
53
53
  customSections: encodeData.customSections,
54
54
  cardType: encodeData.sourceContent.dsl.substring(0, 5),
55
+ appType: encodeData.sourceContent.appType,
55
56
  pageConfig: {
56
57
  ...encodeData.compilerOptions,
57
58
  ...encodeData.sourceContent.config,
@@ -68,6 +69,7 @@ export class WebEncodePlugin {
68
69
  styleInfo: encodeOptions['styleInfo'],
69
70
  manifest: encodeOptions.manifest,
70
71
  cardType: encodeOptions['cardType'],
72
+ appType: encodeOptions['appType'],
71
73
  pageConfig: encodeOptions['pageConfig'],
72
74
  lepusCode: {
73
75
  // flatten the lepusCode to a single object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/template-webpack-plugin-canary",
3
- "version": "0.8.5",
3
+ "version": "0.8.6-canary-20250915-f24eb4a2",
4
4
  "description": "Simplifies creation of Lynx template files to serve your webpack bundles",
5
5
  "keywords": [
6
6
  "webpack",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.3",
36
- "@lynx-js/tasm": "0.0.17",
36
+ "@lynx-js/tasm": "0.0.18",
37
37
  "@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.6",
38
38
  "@rspack/lite-tapable": "1.0.1",
39
39
  "css-tree": "^3.1.0",
@@ -44,8 +44,8 @@
44
44
  "@types/css-tree": "^2.3.10",
45
45
  "@types/object.groupby": "^1.0.4",
46
46
  "webpack": "^5.101.3",
47
- "@lynx-js/vitest-setup": "0.0.0",
48
- "@lynx-js/test-tools": "0.0.0"
47
+ "@lynx-js/test-tools": "0.0.0",
48
+ "@lynx-js/vitest-setup": "0.0.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=18"