@lynx-js/template-webpack-plugin-canary 0.8.4 → 0.8.5-canary-20250821-aaca8f91
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 +14 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.8.5-canary-20250821114500-aaca8f91d177061c7b0430cc5cb21a3602897534
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`aaca8f9`](https://github.com/lynx-family/lynx-stack/commit/aaca8f91d177061c7b0430cc5cb21a3602897534)]:
|
|
8
|
+
- @lynx-js/webpack-runtime-globals@0.0.6-canary-20250821114500-aaca8f91d177061c7b0430cc5cb21a3602897534
|
|
9
|
+
|
|
3
10
|
## 0.8.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -51,16 +58,16 @@
|
|
|
51
58
|
type InlineChunkConfig =
|
|
52
59
|
| boolean
|
|
53
60
|
| InlineChunkTest
|
|
54
|
-
| { enable?: boolean |
|
|
61
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
55
62
|
```
|
|
56
63
|
|
|
57
64
|
```ts
|
|
58
|
-
import { defineConfig } from
|
|
65
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
59
66
|
|
|
60
67
|
export default defineConfig({
|
|
61
68
|
output: {
|
|
62
69
|
inlineScripts: ({ name, size }) => {
|
|
63
|
-
return name.includes(
|
|
70
|
+
return name.includes("foo") && size < 1000;
|
|
64
71
|
},
|
|
65
72
|
},
|
|
66
73
|
});
|
|
@@ -110,7 +117,7 @@
|
|
|
110
117
|
example:
|
|
111
118
|
|
|
112
119
|
```js
|
|
113
|
-
import { defineConfig } from
|
|
120
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
114
121
|
|
|
115
122
|
export default defineConfig({
|
|
116
123
|
output: {
|
|
@@ -205,7 +212,7 @@
|
|
|
205
212
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
206
213
|
|
|
207
214
|
```js
|
|
208
|
-
import { LynxTemplatePlugin } from
|
|
215
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
209
216
|
|
|
210
217
|
new LynxTemplatePlugin({
|
|
211
218
|
defaultOverflowVisible: false,
|
|
@@ -224,10 +231,10 @@
|
|
|
224
231
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
225
232
|
|
|
226
233
|
```js
|
|
227
|
-
import { LynxTemplatePlugin } from
|
|
234
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
228
235
|
|
|
229
236
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
230
|
-
hooks.beforeEncode.tap(
|
|
237
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
231
238
|
console.log(entryNames);
|
|
232
239
|
});
|
|
233
240
|
```
|
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.5-canary-20250821-aaca8f91",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.3",
|
|
36
36
|
"@lynx-js/tasm": "0.0.5",
|
|
37
|
-
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.
|
|
37
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.6-canary-20250821-aaca8f91",
|
|
38
38
|
"@rspack/lite-tapable": "1.0.1",
|
|
39
39
|
"css-tree": "^3.1.0",
|
|
40
40
|
"object.groupby": "^1.0.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "7.52.
|
|
43
|
+
"@microsoft/api-extractor": "7.52.11",
|
|
44
44
|
"@types/css-tree": "^2.3.10",
|
|
45
45
|
"@types/object.groupby": "^1.0.4",
|
|
46
|
-
"webpack": "^5.101.
|
|
46
|
+
"webpack": "^5.101.3",
|
|
47
47
|
"@lynx-js/vitest-setup": "0.0.0",
|
|
48
48
|
"@lynx-js/test-tools": "0.0.0"
|
|
49
49
|
},
|