@lynx-js/template-webpack-plugin-canary 0.9.1 → 0.9.2-canary-20251201-738d44d6
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/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.9.2-canary-20251201075617-738d44d685870d7c3f64a1be7139e8d7af498feb
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Upgrade `@lynx-js/tasm` to `0.0.20`. ([#1943](https://github.com/lynx-family/lynx-stack/pull/1943))
|
|
8
|
+
|
|
3
9
|
## 0.9.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -82,16 +88,16 @@
|
|
|
82
88
|
type InlineChunkConfig =
|
|
83
89
|
| boolean
|
|
84
90
|
| InlineChunkTest
|
|
85
|
-
| { enable?: boolean |
|
|
91
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
86
92
|
```
|
|
87
93
|
|
|
88
94
|
```ts
|
|
89
|
-
import { defineConfig } from
|
|
95
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
90
96
|
|
|
91
97
|
export default defineConfig({
|
|
92
98
|
output: {
|
|
93
99
|
inlineScripts: ({ name, size }) => {
|
|
94
|
-
return name.includes(
|
|
100
|
+
return name.includes("foo") && size < 1000;
|
|
95
101
|
},
|
|
96
102
|
},
|
|
97
103
|
});
|
|
@@ -141,7 +147,7 @@
|
|
|
141
147
|
example:
|
|
142
148
|
|
|
143
149
|
```js
|
|
144
|
-
import { defineConfig } from
|
|
150
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
145
151
|
|
|
146
152
|
export default defineConfig({
|
|
147
153
|
output: {
|
|
@@ -236,7 +242,7 @@
|
|
|
236
242
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
237
243
|
|
|
238
244
|
```js
|
|
239
|
-
import { LynxTemplatePlugin } from
|
|
245
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
240
246
|
|
|
241
247
|
new LynxTemplatePlugin({
|
|
242
248
|
defaultOverflowVisible: false,
|
|
@@ -255,10 +261,10 @@
|
|
|
255
261
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
256
262
|
|
|
257
263
|
```js
|
|
258
|
-
import { LynxTemplatePlugin } from
|
|
264
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
259
265
|
|
|
260
266
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
261
|
-
hooks.beforeEncode.tap(
|
|
267
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
262
268
|
console.log(entryNames);
|
|
263
269
|
});
|
|
264
270
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-canary-20251201-738d44d6",
|
|
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.
|
|
36
|
+
"@lynx-js/tasm": "0.0.20",
|
|
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.11",
|
|
45
45
|
"@types/object.groupby": "^1.0.4",
|
|
46
46
|
"webpack": "^5.102.0",
|
|
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"
|