@lynx-js/template-webpack-plugin-canary 0.13.0 → 0.13.1-canary-20260716-e75b5619
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 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.13.1-canary-20260716090211-e75b5619c567d9fd28897990281f6332bf6d88c4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`e75b561`](https://github.com/lynx-family/lynx-stack/commit/e75b5619c567d9fd28897990281f6332bf6d88c4)]:
|
|
8
|
+
- @lynx-js/web-core@0.22.3-canary-20260716090211-e75b5619c567d9fd28897990281f6332bf6d88c4
|
|
9
|
+
|
|
3
10
|
## 0.13.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -46,7 +53,6 @@
|
|
|
46
53
|
### Minor Changes
|
|
47
54
|
|
|
48
55
|
- Add unified `debug-metadata.json` per Lynx entry. ([#2642](https://github.com/lynx-family/lynx-stack/pull/2642))
|
|
49
|
-
|
|
50
56
|
- New `@lynx-js/debug-metadata` schema package (zero-dep).
|
|
51
57
|
- New `@lynx-js/debug-metadata-rsbuild-plugin` emits the file and serves `?field=…` queries in dev.
|
|
52
58
|
- JS `//# sourceMappingURL=` and tasm `templateDebugUrl` repointed at the new endpoint.
|
|
@@ -90,7 +96,6 @@
|
|
|
90
96
|
The default encoding format for the web platform template has been changed from JSON to Binary.
|
|
91
97
|
|
|
92
98
|
**Benefits for developers:**
|
|
93
|
-
|
|
94
99
|
- **Smaller output size:** Binary templates are more compact than JSON strings, reducing the final bundle size.
|
|
95
100
|
- **Faster load performance:** Binary templates parse faster than JSON in the runtime, improving the time-to-interactive for web applications.
|
|
96
101
|
|
|
@@ -302,16 +307,16 @@
|
|
|
302
307
|
type InlineChunkConfig =
|
|
303
308
|
| boolean
|
|
304
309
|
| InlineChunkTest
|
|
305
|
-
| { enable?: boolean |
|
|
310
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
306
311
|
```
|
|
307
312
|
|
|
308
313
|
```ts
|
|
309
|
-
import { defineConfig } from
|
|
314
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
310
315
|
|
|
311
316
|
export default defineConfig({
|
|
312
317
|
output: {
|
|
313
318
|
inlineScripts: ({ name, size }) => {
|
|
314
|
-
return name.includes(
|
|
319
|
+
return name.includes("foo") && size < 1000;
|
|
315
320
|
},
|
|
316
321
|
},
|
|
317
322
|
});
|
|
@@ -361,7 +366,7 @@
|
|
|
361
366
|
example:
|
|
362
367
|
|
|
363
368
|
```js
|
|
364
|
-
import { defineConfig } from
|
|
369
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
365
370
|
|
|
366
371
|
export default defineConfig({
|
|
367
372
|
output: {
|
|
@@ -456,7 +461,7 @@
|
|
|
456
461
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
457
462
|
|
|
458
463
|
```js
|
|
459
|
-
import { LynxTemplatePlugin } from
|
|
464
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
460
465
|
|
|
461
466
|
new LynxTemplatePlugin({
|
|
462
467
|
defaultOverflowVisible: false,
|
|
@@ -475,10 +480,10 @@
|
|
|
475
480
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
476
481
|
|
|
477
482
|
```js
|
|
478
|
-
import { LynxTemplatePlugin } from
|
|
483
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
479
484
|
|
|
480
485
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
481
|
-
hooks.beforeEncode.tap(
|
|
486
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
482
487
|
console.log(entryNames);
|
|
483
488
|
});
|
|
484
489
|
```
|
|
@@ -530,7 +535,6 @@
|
|
|
530
535
|
### Patch Changes
|
|
531
536
|
|
|
532
537
|
- 39efd7c: Change `enableRemoveCSSScope` defaults from `undefined` to `true`, now `enableRemoveCSSScope` can be:
|
|
533
|
-
|
|
534
538
|
- `true` (by default): All CSS files are treated as global CSS.
|
|
535
539
|
- `false`: All CSS files are treated as scoped CSS, and only take effect in the component that explicitly imports it.
|
|
536
540
|
- `undefined`: Only use scoped CSS for CSS Modules, and treat other CSS files as global CSS. Scoped CSS is faster than global CSS, thus you can use CSS Modules to speedy up your CSS if there are performance issues.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1-canary-20260716-e75b5619",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@jridgewell/trace-mapping": "^0.3.29",
|
|
36
36
|
"@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.6",
|
|
37
37
|
"@lynx-js/tasm": "0.0.39",
|
|
38
|
-
"@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.22.
|
|
38
|
+
"@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.22.3-canary-20260716-e75b5619",
|
|
39
39
|
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.7",
|
|
40
40
|
"@rspack/lite-tapable": "1.1.0",
|
|
41
41
|
"css-tree": "^3.1.0",
|