@lynx-js/template-webpack-plugin-canary 0.9.0-canary-20250919-ec48624b → 0.9.0
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 +10 -8
- package/lib/LynxTemplatePlugin.d.ts +0 -4
- package/lib/LynxTemplatePlugin.js +1 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.9.0
|
|
3
|
+
## 0.9.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
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
10
|
|
|
11
|
+
- **BREAKING CHANGE**: Remove the `enableICU` option. ([#1800](https://github.com/lynx-family/lynx-stack/pull/1800))
|
|
12
|
+
|
|
11
13
|
## 0.8.6
|
|
12
14
|
|
|
13
15
|
### Patch Changes
|
|
@@ -74,16 +76,16 @@
|
|
|
74
76
|
type InlineChunkConfig =
|
|
75
77
|
| boolean
|
|
76
78
|
| InlineChunkTest
|
|
77
|
-
| { enable?: boolean |
|
|
79
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
```ts
|
|
81
|
-
import { defineConfig } from
|
|
83
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
82
84
|
|
|
83
85
|
export default defineConfig({
|
|
84
86
|
output: {
|
|
85
87
|
inlineScripts: ({ name, size }) => {
|
|
86
|
-
return name.includes(
|
|
88
|
+
return name.includes('foo') && size < 1000;
|
|
87
89
|
},
|
|
88
90
|
},
|
|
89
91
|
});
|
|
@@ -133,7 +135,7 @@
|
|
|
133
135
|
example:
|
|
134
136
|
|
|
135
137
|
```js
|
|
136
|
-
import { defineConfig } from
|
|
138
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
137
139
|
|
|
138
140
|
export default defineConfig({
|
|
139
141
|
output: {
|
|
@@ -228,7 +230,7 @@
|
|
|
228
230
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
229
231
|
|
|
230
232
|
```js
|
|
231
|
-
import { LynxTemplatePlugin } from
|
|
233
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
232
234
|
|
|
233
235
|
new LynxTemplatePlugin({
|
|
234
236
|
defaultOverflowVisible: false,
|
|
@@ -247,10 +249,10 @@
|
|
|
247
249
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
248
250
|
|
|
249
251
|
```js
|
|
250
|
-
import { LynxTemplatePlugin } from
|
|
252
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
251
253
|
|
|
252
254
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
253
|
-
hooks.beforeEncode.tap(
|
|
255
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
254
256
|
console.log(entryNames);
|
|
255
257
|
});
|
|
256
258
|
```
|
|
@@ -178,10 +178,6 @@ export interface LynxTemplatePluginOptions {
|
|
|
178
178
|
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.enableAccessibilityElement}
|
|
179
179
|
*/
|
|
180
180
|
enableAccessibilityElement: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.enableICU}
|
|
183
|
-
*/
|
|
184
|
-
enableICU: boolean;
|
|
185
181
|
/**
|
|
186
182
|
* Use Android View level APIs and system implementations.
|
|
187
183
|
*/
|
|
@@ -74,7 +74,6 @@ export class LynxTemplatePlugin {
|
|
|
74
74
|
// lynx-specific
|
|
75
75
|
customCSSInheritanceList: undefined,
|
|
76
76
|
debugInfoOutside: true,
|
|
77
|
-
enableICU: false,
|
|
78
77
|
enableA11y: true,
|
|
79
78
|
enableAccessibilityElement: false,
|
|
80
79
|
enableCSSInheritance: false,
|
|
@@ -266,7 +265,7 @@ class LynxTemplatePluginImpl {
|
|
|
266
265
|
}
|
|
267
266
|
async #encodeByAssetsInformation(compilation, assetsInfoByGroups, entryNames, filenameTemplate, intermediate, isAsync) {
|
|
268
267
|
const compiler = compilation.compiler;
|
|
269
|
-
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear,
|
|
268
|
+
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableRemoveCSSScope, removeDescendantSelectorScope, targetSdkVersion, defaultOverflowVisible, dsl, cssPlugins, } = this.#options;
|
|
270
269
|
const isDev = process.env['NODE_ENV'] === 'development'
|
|
271
270
|
|| compiler.options.mode === 'development';
|
|
272
271
|
const css = cssChunksToMap(assetsInfoByGroups.css
|
|
@@ -295,7 +294,6 @@ class LynxTemplatePluginImpl {
|
|
|
295
294
|
config: {
|
|
296
295
|
lepusStrict: true,
|
|
297
296
|
useNewSwiper: true,
|
|
298
|
-
enableICU,
|
|
299
297
|
enableNewIntersectionObserver: true,
|
|
300
298
|
enableNativeList: true,
|
|
301
299
|
enableA11y,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.9.0
|
|
3
|
+
"version": "0.9.0",
|
|
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"
|