@tramvai/cli 7.4.2 → 7.4.4
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/__migrations__/d2026-01-28b-tramvai-config-remove-transpileOnlyModernLibs.js +31 -0
- package/lib/api/analyze/index.d.ts +1 -1
- package/lib/api/analyze/index.d.ts.map +1 -1
- package/lib/api/start/index.d.ts +1 -1
- package/lib/api/start/index.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.d.ts +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.js +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts +0 -4
- package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.js +0 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/statoscope.d.ts +3 -7
- package/lib/builder/webpack/analyzePlugins/statoscope.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/statoscope.js +6 -26
- package/lib/builder/webpack/analyzePlugins/statoscope.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/stats.d.ts +12 -0
- package/lib/builder/webpack/analyzePlugins/stats.d.ts.map +1 -0
- package/lib/builder/webpack/analyzePlugins/stats.js +40 -0
- package/lib/builder/webpack/analyzePlugins/stats.js.map +1 -0
- package/lib/builder/webpack/analyzePlugins/whyBundled.d.ts +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.js +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.js.map +1 -1
- package/lib/builder/webpack/providers/build/server.d.ts.map +1 -1
- package/lib/builder/webpack/providers/build/server.js +5 -2
- package/lib/builder/webpack/providers/build/server.js.map +1 -1
- package/lib/builder/webpack/providers/shared.d.ts.map +1 -1
- package/lib/builder/webpack/providers/shared.js +2 -0
- package/lib/builder/webpack/providers/shared.js.map +1 -1
- package/lib/builder/webpack/providers/start/shared.d.ts.map +1 -1
- package/lib/builder/webpack/providers/start/shared.js +10 -4
- package/lib/builder/webpack/providers/start/shared.js.map +1 -1
- package/lib/builder/webpack/tokens.d.ts +0 -2
- package/lib/builder/webpack/tokens.d.ts.map +1 -1
- package/lib/builder/webpack/types.d.ts +2 -1
- package/lib/builder/webpack/types.d.ts.map +1 -1
- package/lib/builder/webpack/types.js +3 -1
- package/lib/builder/webpack/types.js.map +1 -1
- package/lib/commands/analyze/command.js +1 -1
- package/lib/commands/analyze/command.js.map +1 -1
- package/lib/commands/build/command.d.ts.map +1 -1
- package/lib/commands/build/command.js +6 -1
- package/lib/commands/build/command.js.map +1 -1
- package/lib/commands/start/command.js +1 -1
- package/lib/commands/start/command.js.map +1 -1
- package/lib/config/configManager.d.ts +2 -1
- package/lib/config/configManager.d.ts.map +1 -1
- package/lib/config/configManager.js +1 -0
- package/lib/config/configManager.js.map +1 -1
- package/lib/di/tokens/config.d.ts +0 -1
- package/lib/di/tokens/config.d.ts.map +1 -1
- package/lib/library/webpack/blocks/js.d.ts.map +1 -1
- package/lib/library/webpack/blocks/js.js +1 -2
- package/lib/library/webpack/blocks/js.js.map +1 -1
- package/lib/library/webpack/blocks/optimize.d.ts.map +1 -1
- package/lib/library/webpack/blocks/optimize.js +7 -1
- package/lib/library/webpack/blocks/optimize.js.map +1 -1
- package/lib/library/webpack/child-app/common.d.ts.map +1 -1
- package/lib/library/webpack/child-app/common.js +2 -10
- package/lib/library/webpack/child-app/common.js.map +1 -1
- package/lib/library/webpack/common/main.js +1 -1
- package/lib/library/webpack/common/main.js.map +1 -1
- package/lib/schema/autogeneratedSchema.json +15 -30
- package/lib/typings/configEntry/cli.d.ts +0 -5
- package/lib/typings/configEntry/cli.d.ts.map +1 -1
- package/package.json +8 -7
- package/schema.json +15 -30
- package/src/api/analyze/index.ts +1 -1
- package/src/api/build/__integration__/build.test.ts +8 -8
- package/src/api/start/index.ts +1 -1
- package/src/builder/webpack/analyzePlugins/bundle.ts +1 -1
- package/src/builder/webpack/analyzePlugins/rsdoctor.ts +0 -2
- package/src/builder/webpack/analyzePlugins/statoscope.ts +8 -40
- package/src/builder/webpack/analyzePlugins/stats.ts +45 -0
- package/src/builder/webpack/analyzePlugins/whyBundled.ts +1 -1
- package/src/builder/webpack/providers/build/server.ts +7 -2
- package/src/builder/webpack/providers/shared.ts +2 -0
- package/src/builder/webpack/providers/start/shared.ts +10 -4
- package/src/builder/webpack/types.ts +5 -2
- package/src/commands/analyze/command.ts +1 -1
- package/src/commands/build/command.ts +6 -1
- package/src/commands/start/command.ts +1 -1
- package/src/config/configManager.ts +3 -1
- package/src/library/swc/__integration__/__snapshots__/swc.build.test.ts.snap +14 -14
- package/src/library/swc/__integration__/__snapshots__/swc.start.test.ts.snap +30 -30
- package/src/library/swc/__integration__/swc.build.test.ts +1 -1
- package/src/library/swc/__integration__/swc.start.test.ts +1 -1
- package/src/library/webpack/blocks/js.ts +1 -2
- package/src/library/webpack/blocks/optimize.ts +8 -1
- package/src/library/webpack/child-app/common.ts +2 -10
- package/src/library/webpack/common/main.ts +1 -1
- package/src/models/config.spec.ts +0 -4
- package/src/schema/autogeneratedSchema.json +15 -30
- package/src/schema/tramvai.spec.ts +0 -2
- package/src/typings/configEntry/cli.ts +0 -5
|
@@ -144,18 +144,10 @@ export default (configManager: ConfigManager<ChildAppConfigEntry>) => (config: C
|
|
|
144
144
|
type: 'assign',
|
|
145
145
|
},
|
|
146
146
|
exposes: {
|
|
147
|
-
//
|
|
148
|
-
// as ChunkCorrelationPlugin fails to resolve
|
|
149
|
-
// entry otherwise.
|
|
150
|
-
// Way to reproduce: build and compare stats file for child-app with absolute and relative paths
|
|
151
|
-
// -----
|
|
152
|
-
// 2) path.relative should use the posix separator because
|
|
147
|
+
// path.relative should use the posix separator because
|
|
153
148
|
// @module-federation/node is parsing relative path incorrectly
|
|
154
149
|
// Debug notes: there is problem in webpack/ModuleFederation or enhanced-resolve
|
|
155
|
-
entry: path
|
|
156
|
-
.relative(config.get('context'), entry)
|
|
157
|
-
.split(path.win32.sep)
|
|
158
|
-
.join(path.posix.sep),
|
|
150
|
+
entry: entry.split(path.win32.sep).join(path.posix.sep),
|
|
159
151
|
},
|
|
160
152
|
shared: sharedModules,
|
|
161
153
|
} as UniversalFederationPluginOptions,
|
|
@@ -45,7 +45,7 @@ export default (configManager: ConfigManager<CliConfigEntry>) => (config: Config
|
|
|
45
45
|
config.set('ignoreWarnings', ignoreWarnings);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
config.context(
|
|
48
|
+
config.context(configManager.rootDir);
|
|
49
49
|
config.batch(resolve(configManager));
|
|
50
50
|
config.batch(ignoreLocales());
|
|
51
51
|
|
|
@@ -126,7 +126,6 @@ it('should populate defaults for config', () => {
|
|
|
126
126
|
"terser": {
|
|
127
127
|
"parallel": true,
|
|
128
128
|
},
|
|
129
|
-
"transpileOnlyModernLibs": true,
|
|
130
129
|
"type": "application",
|
|
131
130
|
"webpack": {
|
|
132
131
|
"writeToDisk": false,
|
|
@@ -187,7 +186,6 @@ it('should populate defaults for config', () => {
|
|
|
187
186
|
"terser": {
|
|
188
187
|
"parallel": true,
|
|
189
188
|
},
|
|
190
|
-
"transpileOnlyModernLibs": true,
|
|
191
189
|
"type": "child-app",
|
|
192
190
|
"webpack": {
|
|
193
191
|
"writeToDisk": false,
|
|
@@ -393,7 +391,6 @@ it('should populate defaults for overridable options', () => {
|
|
|
393
391
|
"terser": {
|
|
394
392
|
"parallel": true,
|
|
395
393
|
},
|
|
396
|
-
"transpileOnlyModernLibs": true,
|
|
397
394
|
"type": "application",
|
|
398
395
|
"webpack": {
|
|
399
396
|
"devtool": "eval-source-map",
|
|
@@ -465,7 +462,6 @@ it('should populate defaults for overridable options', () => {
|
|
|
465
462
|
"terser": {
|
|
466
463
|
"parallel": true,
|
|
467
464
|
},
|
|
468
|
-
"transpileOnlyModernLibs": true,
|
|
469
465
|
"type": "child-app",
|
|
470
466
|
"webpack": {
|
|
471
467
|
"devtool": "eval-source-map",
|
|
@@ -1272,11 +1272,6 @@
|
|
|
1272
1272
|
},
|
|
1273
1273
|
"additionalProperties": false
|
|
1274
1274
|
},
|
|
1275
|
-
"transpileOnlyModernLibs": {
|
|
1276
|
-
"title": "transpile libs based only on @tinkoff/is-modern-lib",
|
|
1277
|
-
"default": true,
|
|
1278
|
-
"type": "boolean"
|
|
1279
|
-
},
|
|
1280
1275
|
"webpack": {
|
|
1281
1276
|
"title": "Webpack specific settings",
|
|
1282
1277
|
"default": {},
|
|
@@ -1356,23 +1351,23 @@
|
|
|
1356
1351
|
"dotAll": {
|
|
1357
1352
|
"type": "boolean"
|
|
1358
1353
|
},
|
|
1359
|
-
"__@match@
|
|
1354
|
+
"__@match@9030": {
|
|
1360
1355
|
"type": "object",
|
|
1361
1356
|
"additionalProperties": false
|
|
1362
1357
|
},
|
|
1363
|
-
"__@replace@
|
|
1358
|
+
"__@replace@9032": {
|
|
1364
1359
|
"type": "object",
|
|
1365
1360
|
"additionalProperties": false
|
|
1366
1361
|
},
|
|
1367
|
-
"__@search@
|
|
1362
|
+
"__@search@9035": {
|
|
1368
1363
|
"type": "object",
|
|
1369
1364
|
"additionalProperties": false
|
|
1370
1365
|
},
|
|
1371
|
-
"__@split@
|
|
1366
|
+
"__@split@9037": {
|
|
1372
1367
|
"type": "object",
|
|
1373
1368
|
"additionalProperties": false
|
|
1374
1369
|
},
|
|
1375
|
-
"__@matchAll@
|
|
1370
|
+
"__@matchAll@9039": {
|
|
1376
1371
|
"type": "object",
|
|
1377
1372
|
"additionalProperties": false
|
|
1378
1373
|
}
|
|
@@ -2139,11 +2134,6 @@
|
|
|
2139
2134
|
},
|
|
2140
2135
|
"additionalProperties": false
|
|
2141
2136
|
},
|
|
2142
|
-
"transpileOnlyModernLibs": {
|
|
2143
|
-
"title": "transpile libs based only on @tinkoff/is-modern-lib",
|
|
2144
|
-
"default": true,
|
|
2145
|
-
"type": "boolean"
|
|
2146
|
-
},
|
|
2147
2137
|
"webpack": {
|
|
2148
2138
|
"title": "Webpack specific settings",
|
|
2149
2139
|
"default": {},
|
|
@@ -2223,23 +2213,23 @@
|
|
|
2223
2213
|
"dotAll": {
|
|
2224
2214
|
"type": "boolean"
|
|
2225
2215
|
},
|
|
2226
|
-
"__@match@
|
|
2216
|
+
"__@match@9030": {
|
|
2227
2217
|
"type": "object",
|
|
2228
2218
|
"additionalProperties": false
|
|
2229
2219
|
},
|
|
2230
|
-
"__@replace@
|
|
2220
|
+
"__@replace@9032": {
|
|
2231
2221
|
"type": "object",
|
|
2232
2222
|
"additionalProperties": false
|
|
2233
2223
|
},
|
|
2234
|
-
"__@search@
|
|
2224
|
+
"__@search@9035": {
|
|
2235
2225
|
"type": "object",
|
|
2236
2226
|
"additionalProperties": false
|
|
2237
2227
|
},
|
|
2238
|
-
"__@split@
|
|
2228
|
+
"__@split@9037": {
|
|
2239
2229
|
"type": "object",
|
|
2240
2230
|
"additionalProperties": false
|
|
2241
2231
|
},
|
|
2242
|
-
"__@matchAll@
|
|
2232
|
+
"__@matchAll@9039": {
|
|
2243
2233
|
"type": "object",
|
|
2244
2234
|
"additionalProperties": false
|
|
2245
2235
|
}
|
|
@@ -3006,11 +2996,6 @@
|
|
|
3006
2996
|
},
|
|
3007
2997
|
"additionalProperties": false
|
|
3008
2998
|
},
|
|
3009
|
-
"transpileOnlyModernLibs": {
|
|
3010
|
-
"title": "transpile libs based only on @tinkoff/is-modern-lib",
|
|
3011
|
-
"default": true,
|
|
3012
|
-
"type": "boolean"
|
|
3013
|
-
},
|
|
3014
2999
|
"webpack": {
|
|
3015
3000
|
"title": "Webpack specific settings",
|
|
3016
3001
|
"default": {},
|
|
@@ -3090,23 +3075,23 @@
|
|
|
3090
3075
|
"dotAll": {
|
|
3091
3076
|
"type": "boolean"
|
|
3092
3077
|
},
|
|
3093
|
-
"__@match@
|
|
3078
|
+
"__@match@9030": {
|
|
3094
3079
|
"type": "object",
|
|
3095
3080
|
"additionalProperties": false
|
|
3096
3081
|
},
|
|
3097
|
-
"__@replace@
|
|
3082
|
+
"__@replace@9032": {
|
|
3098
3083
|
"type": "object",
|
|
3099
3084
|
"additionalProperties": false
|
|
3100
3085
|
},
|
|
3101
|
-
"__@search@
|
|
3086
|
+
"__@search@9035": {
|
|
3102
3087
|
"type": "object",
|
|
3103
3088
|
"additionalProperties": false
|
|
3104
3089
|
},
|
|
3105
|
-
"__@split@
|
|
3090
|
+
"__@split@9037": {
|
|
3106
3091
|
"type": "object",
|
|
3107
3092
|
"additionalProperties": false
|
|
3108
3093
|
},
|
|
3109
|
-
"__@matchAll@
|
|
3094
|
+
"__@matchAll@9039": {
|
|
3110
3095
|
"type": "object",
|
|
3111
3096
|
"additionalProperties": false
|
|
3112
3097
|
}
|
|
@@ -155,7 +155,6 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
155
155
|
"terser": {
|
|
156
156
|
"parallel": true,
|
|
157
157
|
},
|
|
158
|
-
"transpileOnlyModernLibs": true,
|
|
159
158
|
"type": "application",
|
|
160
159
|
"webpack": {
|
|
161
160
|
"writeToDisk": false,
|
|
@@ -216,7 +215,6 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
216
215
|
"terser": {
|
|
217
216
|
"parallel": true,
|
|
218
217
|
},
|
|
219
|
-
"transpileOnlyModernLibs": true,
|
|
220
218
|
"type": "module",
|
|
221
219
|
"webpack": {
|
|
222
220
|
"writeToDisk": false,
|
|
@@ -247,11 +247,6 @@ export interface CliConfigEntry extends ConfigEntry {
|
|
|
247
247
|
*/
|
|
248
248
|
options?: Record<string, any>;
|
|
249
249
|
};
|
|
250
|
-
/**
|
|
251
|
-
* @title transpile libs based only on %40tinkoff/is-modern-lib
|
|
252
|
-
* @default true
|
|
253
|
-
*/
|
|
254
|
-
transpileOnlyModernLibs: boolean;
|
|
255
250
|
/**
|
|
256
251
|
* @title Webpack specific settings
|
|
257
252
|
* @default {}
|