@lynx-js/react-webpack-plugin 0.6.16 → 0.6.17
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 +32 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @lynx-js/react-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Enable fine-grained control for `output.inlineScripts` ([#883](https://github.com/lynx-family/lynx-stack/pull/883))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
type InlineChunkTestFunction = (params: {
|
|
11
|
+
size: number;
|
|
12
|
+
name: string;
|
|
13
|
+
}) => boolean;
|
|
14
|
+
|
|
15
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction;
|
|
16
|
+
|
|
17
|
+
type InlineChunkConfig =
|
|
18
|
+
| boolean
|
|
19
|
+
| InlineChunkTest
|
|
20
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
25
|
+
|
|
26
|
+
export default defineConfig({
|
|
27
|
+
output: {
|
|
28
|
+
inlineScripts: ({ name, size }) => {
|
|
29
|
+
return name.includes('foo') && size < 1000;
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
3
35
|
## 0.6.16
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-webpack-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"description": "A webpack plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@microsoft/api-extractor": "7.52.8",
|
|
41
|
-
"@rspack/core": "1.
|
|
41
|
+
"@rspack/core": "1.4.0-rc.0",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"swc-loader": "^0.2.6",
|
|
44
44
|
"webpack": "^5.99.9",
|
|
45
45
|
"@lynx-js/css-extract-webpack-plugin": "0.6.0",
|
|
46
|
-
"@lynx-js/react": "0.110.
|
|
47
|
-
"@lynx-js/template-webpack-plugin": "0.8.
|
|
46
|
+
"@lynx-js/react": "0.110.1",
|
|
47
|
+
"@lynx-js/template-webpack-plugin": "0.8.1",
|
|
48
48
|
"@lynx-js/test-tools": "0.0.0",
|
|
49
49
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
50
50
|
},
|