@lynx-js/template-webpack-plugin-canary 0.8.6 → 0.9.0-canary-20250918-b69a986a
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 +15 -7
- package/lib/LynxTemplatePlugin.d.ts +0 -8
- package/lib/LynxTemplatePlugin.js +1 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.9.0-canary-20250918085607-b69a986acd19ecbcb6246a7c9dccd99544415131
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **BREAKING CHANGE:** Remove the `enableParallelElement` and `pipelineSchedulerConfig` options. ([#1705](https://github.com/lynx-family/lynx-stack/pull/1705))
|
|
8
|
+
|
|
9
|
+
Since the thread element resolution is still in experimental stage and may have stability risks, it will be disabled by default after this change.
|
|
10
|
+
|
|
3
11
|
## 0.8.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -66,16 +74,16 @@
|
|
|
66
74
|
type InlineChunkConfig =
|
|
67
75
|
| boolean
|
|
68
76
|
| InlineChunkTest
|
|
69
|
-
| { enable?: boolean |
|
|
77
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
70
78
|
```
|
|
71
79
|
|
|
72
80
|
```ts
|
|
73
|
-
import { defineConfig } from
|
|
81
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
74
82
|
|
|
75
83
|
export default defineConfig({
|
|
76
84
|
output: {
|
|
77
85
|
inlineScripts: ({ name, size }) => {
|
|
78
|
-
return name.includes(
|
|
86
|
+
return name.includes("foo") && size < 1000;
|
|
79
87
|
},
|
|
80
88
|
},
|
|
81
89
|
});
|
|
@@ -125,7 +133,7 @@
|
|
|
125
133
|
example:
|
|
126
134
|
|
|
127
135
|
```js
|
|
128
|
-
import { defineConfig } from
|
|
136
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
129
137
|
|
|
130
138
|
export default defineConfig({
|
|
131
139
|
output: {
|
|
@@ -220,7 +228,7 @@
|
|
|
220
228
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
221
229
|
|
|
222
230
|
```js
|
|
223
|
-
import { LynxTemplatePlugin } from
|
|
231
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
224
232
|
|
|
225
233
|
new LynxTemplatePlugin({
|
|
226
234
|
defaultOverflowVisible: false,
|
|
@@ -239,10 +247,10 @@
|
|
|
239
247
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
240
248
|
|
|
241
249
|
```js
|
|
242
|
-
import { LynxTemplatePlugin } from
|
|
250
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
243
251
|
|
|
244
252
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
245
|
-
hooks.beforeEncode.tap(
|
|
253
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
246
254
|
console.log(entryNames);
|
|
247
255
|
});
|
|
248
256
|
```
|
|
@@ -202,18 +202,10 @@ export interface LynxTemplatePluginOptions {
|
|
|
202
202
|
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.enableNewGesture}
|
|
203
203
|
*/
|
|
204
204
|
enableNewGesture: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.enableParallelElement}
|
|
207
|
-
*/
|
|
208
|
-
enableParallelElement?: boolean;
|
|
209
205
|
/**
|
|
210
206
|
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.enableRemoveCSSScope}
|
|
211
207
|
*/
|
|
212
208
|
enableRemoveCSSScope: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.pipelineSchedulerConfig}
|
|
215
|
-
*/
|
|
216
|
-
pipelineSchedulerConfig: number;
|
|
217
209
|
/**
|
|
218
210
|
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.removeDescendantSelectorScope}
|
|
219
211
|
*/
|
|
@@ -81,10 +81,8 @@ export class LynxTemplatePlugin {
|
|
|
81
81
|
enableCSSInvalidation: false,
|
|
82
82
|
enableCSSSelector: true,
|
|
83
83
|
enableNewGesture: false,
|
|
84
|
-
enableParallelElement: true,
|
|
85
84
|
defaultDisplayLinear: true,
|
|
86
85
|
enableRemoveCSSScope: false,
|
|
87
|
-
pipelineSchedulerConfig: 0x00010000,
|
|
88
86
|
targetSdkVersion: '3.2',
|
|
89
87
|
defaultOverflowVisible: true,
|
|
90
88
|
removeDescendantSelectorScope: false,
|
|
@@ -268,7 +266,7 @@ class LynxTemplatePluginImpl {
|
|
|
268
266
|
}
|
|
269
267
|
async #encodeByAssetsInformation(compilation, assetsInfoByGroups, entryNames, filenameTemplate, intermediate, isAsync) {
|
|
270
268
|
const compiler = compilation.compiler;
|
|
271
|
-
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableICU, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture,
|
|
269
|
+
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableICU, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableRemoveCSSScope, removeDescendantSelectorScope, targetSdkVersion, defaultOverflowVisible, dsl, cssPlugins, } = this.#options;
|
|
272
270
|
const isDev = process.env['NODE_ENV'] === 'development'
|
|
273
271
|
|| compiler.options.mode === 'development';
|
|
274
272
|
const css = cssChunksToMap(assetsInfoByGroups.css
|
|
@@ -287,7 +285,6 @@ class LynxTemplatePluginImpl {
|
|
|
287
285
|
enableCSSInvalidation,
|
|
288
286
|
enableCSSSelector,
|
|
289
287
|
enableLepusDebug: isDev,
|
|
290
|
-
enableParallelElement,
|
|
291
288
|
enableRemoveCSSScope,
|
|
292
289
|
targetSdkVersion,
|
|
293
290
|
defaultOverflowVisible,
|
|
@@ -306,7 +303,6 @@ class LynxTemplatePluginImpl {
|
|
|
306
303
|
customCSSInheritanceList,
|
|
307
304
|
enableCSSInheritance,
|
|
308
305
|
enableNewGesture,
|
|
309
|
-
pipelineSchedulerConfig,
|
|
310
306
|
removeDescendantSelectorScope,
|
|
311
307
|
},
|
|
312
308
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-canary-20250918-b69a986a",
|
|
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.101.3",
|
|
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"
|