@tramvai/cli 4.35.0 → 4.36.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/lib/builder/webpack/tokens.d.ts +3 -0
- package/lib/builder/webpack/tokens.d.ts.map +1 -1
- package/lib/di/tokens/config.d.ts +1 -0
- package/lib/di/tokens/config.d.ts.map +1 -1
- package/lib/library/babel/index.d.ts +1 -1
- package/lib/library/babel/index.d.ts.map +1 -1
- package/lib/library/babel/index.js +3 -1
- package/lib/library/babel/index.js.map +1 -1
- package/lib/library/babel/plugins/fill-declare-action-name.d.ts +6 -0
- package/lib/library/babel/plugins/fill-declare-action-name.d.ts.map +1 -0
- package/lib/library/babel/plugins/fill-declare-action-name.js +95 -0
- package/lib/library/babel/plugins/fill-declare-action-name.js.map +1 -0
- package/lib/library/babel/plugins/types.h.d.ts +2 -2
- package/lib/library/babel/plugins/types.h.d.ts.map +1 -1
- package/lib/library/webpack/utils/transpiler.d.ts +1 -0
- package/lib/library/webpack/utils/transpiler.d.ts.map +1 -1
- package/lib/library/webpack/utils/transpiler.js +3 -3
- package/lib/library/webpack/utils/transpiler.js.map +1 -1
- package/lib/schema/autogeneratedSchema.json +30 -15
- package/lib/typings/configEntry/cli.d.ts +5 -0
- package/lib/typings/configEntry/cli.d.ts.map +1 -1
- package/package.json +2 -2
- package/schema.json +30 -15
- package/src/library/babel/index.ts +3 -0
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-mixed.ts +17 -0
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-with-name.ts +28 -0
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-without-name.ts +25 -0
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-with-name.ts +21 -0
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-without-name.ts +19 -0
- package/src/library/babel/plugins/__snapshots__/fill-declare-action-name.spec.ts.snap +266 -0
- package/src/library/babel/plugins/fill-declare-action-name.spec.ts +37 -0
- package/src/library/babel/plugins/fill-declare-action-name.ts +110 -0
- package/src/library/babel/plugins/types.h.ts +2 -2
- package/src/library/webpack/utils/transpiler.ts +9 -1
- package/src/models/config.spec.ts +4 -0
- package/src/schema/autogeneratedSchema.json +30 -15
- package/src/schema/tramvai.spec.ts +2 -0
- package/src/typings/configEntry/cli.ts +5 -0
|
@@ -935,6 +935,11 @@
|
|
|
935
935
|
"title": "automatically resolve [requiredVersion](https://webpack.js.org/plugins/module-federation-plugin/#requiredversion) for shared dependencies",
|
|
936
936
|
"default": false,
|
|
937
937
|
"type": "boolean"
|
|
938
|
+
},
|
|
939
|
+
"enableFillDeclareActionNamePlugin": {
|
|
940
|
+
"title": "Включает использование плагина fill-declare-action-name",
|
|
941
|
+
"default": false,
|
|
942
|
+
"type": "boolean"
|
|
938
943
|
}
|
|
939
944
|
},
|
|
940
945
|
"additionalProperties": false
|
|
@@ -1183,23 +1188,23 @@
|
|
|
1183
1188
|
"dotAll": {
|
|
1184
1189
|
"type": "boolean"
|
|
1185
1190
|
},
|
|
1186
|
-
"__@match@
|
|
1191
|
+
"__@match@7211": {
|
|
1187
1192
|
"type": "object",
|
|
1188
1193
|
"additionalProperties": false
|
|
1189
1194
|
},
|
|
1190
|
-
"__@replace@
|
|
1195
|
+
"__@replace@7213": {
|
|
1191
1196
|
"type": "object",
|
|
1192
1197
|
"additionalProperties": false
|
|
1193
1198
|
},
|
|
1194
|
-
"__@search@
|
|
1199
|
+
"__@search@7216": {
|
|
1195
1200
|
"type": "object",
|
|
1196
1201
|
"additionalProperties": false
|
|
1197
1202
|
},
|
|
1198
|
-
"__@split@
|
|
1203
|
+
"__@split@7218": {
|
|
1199
1204
|
"type": "object",
|
|
1200
1205
|
"additionalProperties": false
|
|
1201
1206
|
},
|
|
1202
|
-
"__@matchAll@
|
|
1207
|
+
"__@matchAll@7220": {
|
|
1203
1208
|
"type": "object",
|
|
1204
1209
|
"additionalProperties": false
|
|
1205
1210
|
}
|
|
@@ -1705,6 +1710,11 @@
|
|
|
1705
1710
|
"title": "automatically resolve [requiredVersion](https://webpack.js.org/plugins/module-federation-plugin/#requiredversion) for shared dependencies",
|
|
1706
1711
|
"default": false,
|
|
1707
1712
|
"type": "boolean"
|
|
1713
|
+
},
|
|
1714
|
+
"enableFillDeclareActionNamePlugin": {
|
|
1715
|
+
"title": "Включает использование плагина fill-declare-action-name",
|
|
1716
|
+
"default": false,
|
|
1717
|
+
"type": "boolean"
|
|
1708
1718
|
}
|
|
1709
1719
|
},
|
|
1710
1720
|
"additionalProperties": false
|
|
@@ -1891,23 +1901,23 @@
|
|
|
1891
1901
|
"dotAll": {
|
|
1892
1902
|
"type": "boolean"
|
|
1893
1903
|
},
|
|
1894
|
-
"__@match@
|
|
1904
|
+
"__@match@7211": {
|
|
1895
1905
|
"type": "object",
|
|
1896
1906
|
"additionalProperties": false
|
|
1897
1907
|
},
|
|
1898
|
-
"__@replace@
|
|
1908
|
+
"__@replace@7213": {
|
|
1899
1909
|
"type": "object",
|
|
1900
1910
|
"additionalProperties": false
|
|
1901
1911
|
},
|
|
1902
|
-
"__@search@
|
|
1912
|
+
"__@search@7216": {
|
|
1903
1913
|
"type": "object",
|
|
1904
1914
|
"additionalProperties": false
|
|
1905
1915
|
},
|
|
1906
|
-
"__@split@
|
|
1916
|
+
"__@split@7218": {
|
|
1907
1917
|
"type": "object",
|
|
1908
1918
|
"additionalProperties": false
|
|
1909
1919
|
},
|
|
1910
|
-
"__@matchAll@
|
|
1920
|
+
"__@matchAll@7220": {
|
|
1911
1921
|
"type": "object",
|
|
1912
1922
|
"additionalProperties": false
|
|
1913
1923
|
}
|
|
@@ -2413,6 +2423,11 @@
|
|
|
2413
2423
|
"title": "automatically resolve [requiredVersion](https://webpack.js.org/plugins/module-federation-plugin/#requiredversion) for shared dependencies",
|
|
2414
2424
|
"default": false,
|
|
2415
2425
|
"type": "boolean"
|
|
2426
|
+
},
|
|
2427
|
+
"enableFillDeclareActionNamePlugin": {
|
|
2428
|
+
"title": "Включает использование плагина fill-declare-action-name",
|
|
2429
|
+
"default": false,
|
|
2430
|
+
"type": "boolean"
|
|
2416
2431
|
}
|
|
2417
2432
|
},
|
|
2418
2433
|
"additionalProperties": false
|
|
@@ -2599,23 +2614,23 @@
|
|
|
2599
2614
|
"dotAll": {
|
|
2600
2615
|
"type": "boolean"
|
|
2601
2616
|
},
|
|
2602
|
-
"__@match@
|
|
2617
|
+
"__@match@7211": {
|
|
2603
2618
|
"type": "object",
|
|
2604
2619
|
"additionalProperties": false
|
|
2605
2620
|
},
|
|
2606
|
-
"__@replace@
|
|
2621
|
+
"__@replace@7213": {
|
|
2607
2622
|
"type": "object",
|
|
2608
2623
|
"additionalProperties": false
|
|
2609
2624
|
},
|
|
2610
|
-
"__@search@
|
|
2625
|
+
"__@search@7216": {
|
|
2611
2626
|
"type": "object",
|
|
2612
2627
|
"additionalProperties": false
|
|
2613
2628
|
},
|
|
2614
|
-
"__@split@
|
|
2629
|
+
"__@split@7218": {
|
|
2615
2630
|
"type": "object",
|
|
2616
2631
|
"additionalProperties": false
|
|
2617
2632
|
},
|
|
2618
|
-
"__@matchAll@
|
|
2633
|
+
"__@matchAll@7220": {
|
|
2619
2634
|
"type": "object",
|
|
2620
2635
|
"additionalProperties": false
|
|
2621
2636
|
}
|
|
@@ -68,6 +68,7 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
68
68
|
"enableFillActionNamePlugin": false,
|
|
69
69
|
"experiments": {
|
|
70
70
|
"autoResolveSharedRequiredVersions": false,
|
|
71
|
+
"enableFillDeclareActionNamePlugin": false,
|
|
71
72
|
"minicss": {
|
|
72
73
|
"useImportModule": true,
|
|
73
74
|
},
|
|
@@ -169,6 +170,7 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
169
170
|
"enableFillActionNamePlugin": false,
|
|
170
171
|
"experiments": {
|
|
171
172
|
"autoResolveSharedRequiredVersions": false,
|
|
173
|
+
"enableFillDeclareActionNamePlugin": false,
|
|
172
174
|
"minicss": {
|
|
173
175
|
"useImportModule": true,
|
|
174
176
|
},
|
|
@@ -80,6 +80,11 @@ export interface Experiments {
|
|
|
80
80
|
* @default false
|
|
81
81
|
*/
|
|
82
82
|
autoResolveSharedRequiredVersions: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @title Включает использование плагина fill-declare-action-name
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
enableFillDeclareActionNamePlugin: boolean;
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
/**
|