@lynx-js/template-webpack-plugin-canary 0.10.0-canary-20251212-9c715ffe → 0.10.1-canary-20251225-cd89bf9e
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 +9 -1
- package/lib/LynxTemplatePlugin.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.10.
|
|
3
|
+
## 0.10.1-canary-20251225070735-cd89bf9e3fc8ed4658dfb6c983584376416d620f
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: pass updated css from encodeData to resolvedEncodeOptions ([#2053](https://github.com/lynx-family/lynx-stack/pull/2053))
|
|
8
|
+
|
|
9
|
+
Previously, the initial CSS was used in resolvedEncodeOptions instead of the potentially updated CSS from encodeData after the beforeEncode hook. This fix ensures resolvedEncodeOptions receives the latest CSS data.
|
|
10
|
+
|
|
11
|
+
## 0.10.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
6
14
|
|
|
@@ -266,7 +266,7 @@ class LynxTemplatePluginImpl {
|
|
|
266
266
|
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableRemoveCSSScope, removeDescendantSelectorScope, targetSdkVersion, defaultOverflowVisible, dsl, cssPlugins, } = this.#options;
|
|
267
267
|
const isDev = process.env['NODE_ENV'] === 'development'
|
|
268
268
|
|| compiler.options.mode === 'development';
|
|
269
|
-
const
|
|
269
|
+
const initialCSS = cssChunksToMap(assetsInfoByGroups.css
|
|
270
270
|
.map(chunk => compilation.getAsset(chunk.name))
|
|
271
271
|
.filter((v) => !!v)
|
|
272
272
|
.map(asset => asset.source.source().toString()), cssPlugins, enableCSSSelector);
|
|
@@ -303,7 +303,7 @@ class LynxTemplatePluginImpl {
|
|
|
303
303
|
},
|
|
304
304
|
},
|
|
305
305
|
css: {
|
|
306
|
-
...
|
|
306
|
+
...initialCSS,
|
|
307
307
|
chunks: assetsInfoByGroups.css,
|
|
308
308
|
},
|
|
309
309
|
lepusCode: {
|
|
@@ -329,7 +329,7 @@ class LynxTemplatePluginImpl {
|
|
|
329
329
|
filenameTemplate,
|
|
330
330
|
entryNames,
|
|
331
331
|
});
|
|
332
|
-
const { lepusCode } = encodeData;
|
|
332
|
+
const { lepusCode, css } = encodeData;
|
|
333
333
|
const resolvedEncodeOptions = {
|
|
334
334
|
...encodeData,
|
|
335
335
|
css: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1-canary-20251225-cd89bf9e",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"object.groupby": "^1.0.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "7.
|
|
43
|
+
"@microsoft/api-extractor": "7.55.2",
|
|
44
44
|
"@types/css-tree": "^2.3.11",
|
|
45
45
|
"@types/object.groupby": "^1.0.4",
|
|
46
46
|
"css-loader": "^7.1.2",
|