@lynx-js/template-webpack-plugin-canary 0.8.2 → 0.8.3-canary-20250730-a4ee4fdd
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 +13 -7
- package/lib/WebEncodePlugin.js +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.8.3-canary-20250730080951-a4ee4fdd507d38265da221ecf112c9cc911e1c0b
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: support elementTemplate for web ([#1374](https://github.com/lynx-family/lynx-stack/pull/1374))
|
|
8
|
+
|
|
3
9
|
## 0.8.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -39,16 +45,16 @@
|
|
|
39
45
|
type InlineChunkConfig =
|
|
40
46
|
| boolean
|
|
41
47
|
| InlineChunkTest
|
|
42
|
-
| { enable?: boolean |
|
|
48
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
43
49
|
```
|
|
44
50
|
|
|
45
51
|
```ts
|
|
46
|
-
import { defineConfig } from
|
|
52
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
47
53
|
|
|
48
54
|
export default defineConfig({
|
|
49
55
|
output: {
|
|
50
56
|
inlineScripts: ({ name, size }) => {
|
|
51
|
-
return name.includes(
|
|
57
|
+
return name.includes("foo") && size < 1000;
|
|
52
58
|
},
|
|
53
59
|
},
|
|
54
60
|
});
|
|
@@ -98,7 +104,7 @@
|
|
|
98
104
|
example:
|
|
99
105
|
|
|
100
106
|
```js
|
|
101
|
-
import { defineConfig } from
|
|
107
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
102
108
|
|
|
103
109
|
export default defineConfig({
|
|
104
110
|
output: {
|
|
@@ -193,7 +199,7 @@
|
|
|
193
199
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
194
200
|
|
|
195
201
|
```js
|
|
196
|
-
import { LynxTemplatePlugin } from
|
|
202
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
197
203
|
|
|
198
204
|
new LynxTemplatePlugin({
|
|
199
205
|
defaultOverflowVisible: false,
|
|
@@ -212,10 +218,10 @@
|
|
|
212
218
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
213
219
|
|
|
214
220
|
```js
|
|
215
|
-
import { LynxTemplatePlugin } from
|
|
221
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
216
222
|
|
|
217
223
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
218
|
-
hooks.beforeEncode.tap(
|
|
224
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
219
225
|
console.log(entryNames);
|
|
220
226
|
});
|
|
221
227
|
```
|
package/lib/WebEncodePlugin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3-canary-20250730-a4ee4fdd",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@types/css-tree": "^2.3.10",
|
|
45
45
|
"@types/object.groupby": "^1.0.4",
|
|
46
46
|
"webpack": "^5.99.9",
|
|
47
|
-
"@lynx-js/
|
|
48
|
-
"@lynx-js/
|
|
47
|
+
"@lynx-js/vitest-setup": "0.0.0",
|
|
48
|
+
"@lynx-js/test-tools": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|