@lynx-js/template-webpack-plugin-canary 0.6.5 → 0.6.6-canary-20250318-ba26a4db

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.6.6-canary-20250318144848-ba26a4db1ec3dcfd445dd834533b3bc10b091686
4
+
5
+ ### Patch Changes
6
+
7
+ - expose main.lynx.bundle to compiler ([#231](https://github.com/lynx-family/lynx-stack/pull/231))
8
+
3
9
  ## 0.6.5
4
10
 
5
11
  ### Patch Changes
@@ -17,7 +23,7 @@
17
23
  - Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
18
24
 
19
25
  ```js
20
- import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
26
+ import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
21
27
 
22
28
  new LynxTemplatePlugin({
23
29
  defaultOverflowVisible: false,
@@ -36,10 +42,10 @@
36
42
  - 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
37
43
 
38
44
  ```js
39
- import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
45
+ import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
40
46
 
41
47
  const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
42
- hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
48
+ hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
43
49
  console.log(entryNames);
44
50
  });
45
51
  ```
@@ -158,7 +158,7 @@ class LynxTemplatePluginImpl {
158
158
  * and source-map is generated
159
159
  */
160
160
  compiler.webpack.Compilation
161
- .PROCESS_ASSETS_STAGE_REPORT,
161
+ .PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE,
162
162
  }, () => {
163
163
  return this.#generateTemplate(compiler, compilation, filename);
164
164
  });
@@ -189,7 +189,7 @@ class LynxTemplatePluginImpl {
189
189
  * and source-map is generated
190
190
  */
191
191
  compiler.webpack.Compilation
192
- .PROCESS_ASSETS_STAGE_REPORT,
192
+ .PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE,
193
193
  }, async () => {
194
194
  await this.#generateAsyncTemplate(compilation);
195
195
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/template-webpack-plugin-canary",
3
- "version": "0.6.5",
3
+ "version": "0.6.6-canary-20250318-ba26a4db",
4
4
  "description": "Simplifies creation of Lynx template files to serve your webpack bundles",
5
5
  "keywords": [
6
6
  "webpack",