@lynx-js/template-webpack-plugin-canary 0.8.5-canary-20250825-e4d116b6 → 0.8.5
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 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.8.5
|
|
3
|
+
## 0.8.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Always inline the background script that contains rspack runtime module. ([#1582](https://github.com/lynx-family/lynx-stack/pull/1582))
|
|
8
8
|
|
|
9
9
|
- Updated dependencies [[`aaca8f9`](https://github.com/lynx-family/lynx-stack/commit/aaca8f91d177061c7b0430cc5cb21a3602897534)]:
|
|
10
|
-
- @lynx-js/webpack-runtime-globals@0.0.6
|
|
10
|
+
- @lynx-js/webpack-runtime-globals@0.0.6
|
|
11
11
|
|
|
12
12
|
## 0.8.4
|
|
13
13
|
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
type InlineChunkConfig =
|
|
61
61
|
| boolean
|
|
62
62
|
| InlineChunkTest
|
|
63
|
-
| { enable?: boolean |
|
|
63
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
|
-
import { defineConfig } from
|
|
67
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
68
68
|
|
|
69
69
|
export default defineConfig({
|
|
70
70
|
output: {
|
|
71
71
|
inlineScripts: ({ name, size }) => {
|
|
72
|
-
return name.includes(
|
|
72
|
+
return name.includes('foo') && size < 1000;
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
75
|
});
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
example:
|
|
120
120
|
|
|
121
121
|
```js
|
|
122
|
-
import { defineConfig } from
|
|
122
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
123
123
|
|
|
124
124
|
export default defineConfig({
|
|
125
125
|
output: {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
215
215
|
|
|
216
216
|
```js
|
|
217
|
-
import { LynxTemplatePlugin } from
|
|
217
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
218
218
|
|
|
219
219
|
new LynxTemplatePlugin({
|
|
220
220
|
defaultOverflowVisible: false,
|
|
@@ -233,10 +233,10 @@
|
|
|
233
233
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
234
234
|
|
|
235
235
|
```js
|
|
236
|
-
import { LynxTemplatePlugin } from
|
|
236
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
237
237
|
|
|
238
238
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
239
|
-
hooks.beforeEncode.tap(
|
|
239
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
240
240
|
console.log(entryNames);
|
|
241
241
|
});
|
|
242
242
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.8.5
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -34,7 +34,7 @@
|
|
|
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.17",
|
|
37
|
-
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.6
|
|
37
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.6",
|
|
38
38
|
"@rspack/lite-tapable": "1.0.1",
|
|
39
39
|
"css-tree": "^3.1.0",
|
|
40
40
|
"object.groupby": "^1.0.3"
|
|
@@ -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"
|