Repository navigation
Commit a1e514f
committed
refactor(performance): group the hint options before any of them ship
None of the checks has been released, so the surface is still free to
change. Twenty-seven options where there were thirty-three:
- 'unusedConfig' replaces 'unusedAliases', 'unusedDefines',
'unusedExternals' and 'unusedRules'. Four switches for one finding —
configuration nothing used — where the fix is the same each time. Each
check keeps its own message.
- 'sourceMaps' replaces 'embeddedSourceMaps' and 'missingSourceMaps'.
- 'unusedModules' absorbs 'unusedReexports': the same module-nothing-uses
finding, told apart only by what kept it there, so each names its own
cause and neither reports what the other will.
- 'duplicateModules' absorbs 'entrypointOverlap', which was a strict
subset of it once the bug below was fixed.
'duplicateModules' counted chunks per module, so a module concatenated
into two entrypoints looked like it was in none and went unreported;
'entrypointOverlap' saw it only because it expanded concatenations. It
now expands them too, and names the entrypoints paying for each copy.
'unusedModules' reported every 'import "./polyfill"', which is deliberate
and was already ruled out for 'unusedReexports'. It now asks that some
importer bound a name, reusing the bare-import class, and skips modules
webpack left out — with no chunk there is no runtime, which is the only
place 'hasOnlyUnusedExports' reads usage.1 parent a4464a3 commit a1e514f
117 files changed
Lines changed: 348 additions & 624 deletions
File tree
- .changeset
- declarations
- lib
- config
- errors
- performance
- schemas
- test
- __snapshots__
- configCases/performance
- all-explicit-wins
- duplicate-modules-concatenated
- duplicate-modules-entrypoints
- duplicate-modules-multiple
- duplicate-modules-one-chunk
- embedded-source-maps-development
- embedded-source-maps-error
- embedded-source-maps-eval
- embedded-source-maps-no-hints
- embedded-source-maps-separate
- embedded-source-maps-stats
- embedded-source-maps
- entrypoint-overlap-multiple
- hints-stats-sorted
- hints-stats
- loading-strategy-combined
- loading-strategy-errors
- loading-strategy-no-hints
- loading-strategy-stats
- missing-source-maps-cheap
- missing-source-maps-clean
- missing-source-maps-error
- missing-source-maps-no-hints
- missing-source-maps-stats
- missing-source-maps
- unused-aliases-absolute
- unused-aliases-clean
- unused-aliases-concatenated
- unused-aliases-context
- unused-aliases-error
- unused-aliases-ignored
- unused-aliases-no-hints
- unused-aliases-none
- unused-aliases-only-module
- unused-aliases-overlap
- unused-aliases-stats
- unused-aliases-wildcard-only-module
- unused-aliases-wildcard
- unused-aliases
- unused-config-combined
- unused-defines-clean
- unused-defines-empty-object
- unused-defines-error
- unused-defines-no-hints
- unused-defines-none
- unused-defines-webpack-own
- unused-defines
- unused-externals-array
- unused-externals-clean
- unused-externals-core-module-prefixed
- unused-externals-core-module-unprefixed
- unused-externals-no-hints
- unused-externals-not-enumerable
- unused-externals
- unused-modules-error
- unused-modules-no-hints
- unused-modules-stats
- unused-modules
- unused-reexports-development
- unused-reexports-error
- unused-reexports-no-hints
- unused-reexports-side-effect-import-in-barrel
- unused-reexports-side-effect-import
- unused-reexports-side-effects-free
- unused-reexports-stats
- unused-reexports-tie
- unused-reexports
- unused-rules-all-matched
- unused-rules-compiler
- unused-rules-error
- unused-rules-no-hints
- unused-rules
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
3471 | | - | |
3472 | | - | |
3473 | | - | |
3474 | | - | |
3475 | | - | |
3476 | | - | |
3477 | | - | |
3478 | | - | |
3479 | | - | |
3480 | 3470 | | |
3481 | 3471 | | |
3482 | 3472 | | |
| |||
3519 | 3509 | | |
3520 | 3510 | | |
3521 | 3511 | | |
3522 | | - | |
3523 | | - | |
3524 | | - | |
3525 | | - | |
3526 | | - | |
3527 | 3512 | | |
3528 | 3513 | | |
3529 | 3514 | | |
| |||
3549 | 3534 | | |
3550 | 3535 | | |
3551 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
3552 | 3542 | | |
3553 | 3543 | | |
3554 | 3544 | | |
| |||
3569 | 3559 | | |
3570 | 3560 | | |
3571 | 3561 | | |
3572 | | - | |
3573 | | - | |
3574 | | - | |
3575 | | - | |
3576 | | - | |
3577 | 3562 | | |
3578 | 3563 | | |
3579 | 3564 | | |
3580 | 3565 | | |
3581 | 3566 | | |
3582 | 3567 | | |
3583 | | - | |
3584 | | - | |
3585 | | - | |
3586 | | - | |
3587 | | - | |
3588 | | - | |
| 3568 | + | |
3589 | 3569 | | |
3590 | 3570 | | |
3591 | | - | |
| 3571 | + | |
3592 | 3572 | | |
3593 | | - | |
| 3573 | + | |
3594 | 3574 | | |
3595 | 3575 | | |
3596 | 3576 | | |
3597 | | - | |
3598 | | - | |
3599 | | - | |
3600 | | - | |
3601 | | - | |
3602 | | - | |
3603 | | - | |
3604 | | - | |
3605 | | - | |
3606 | | - | |
3607 | 3577 | | |
3608 | 3578 | | |
3609 | 3579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
| 1334 | + | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | 977 | | |
984 | 978 | | |
985 | 979 | | |
| |||
1052 | 1046 | | |
1053 | 1047 | | |
1054 | 1048 | | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | 1049 | | |
1062 | 1050 | | |
1063 | 1051 | | |
| |||
1070 | 1058 | | |
1071 | 1059 | | |
1072 | 1060 | | |
1073 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1074 | 1073 | | |
1075 | 1074 | | |
| 1075 | + | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
1080 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1081 | 1086 | | |
1082 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1083 | 1091 | | |
1084 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
1085 | 1095 | | |
1086 | 1096 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | 1097 | | |
1093 | 1098 | | |
| 1099 | + | |
1094 | 1100 | | |
1095 | 1101 | | |
1096 | 1102 | | |
| |||
1104 | 1110 | | |
1105 | 1111 | | |
1106 | 1112 | | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | 1121 | | |
1128 | 1122 | | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | 1123 | | |
1136 | 1124 | | |
1137 | 1125 | | |
1138 | 1126 | | |
1139 | 1127 | | |
1140 | 1128 | | |
1141 | 1129 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | 1130 | | |
1151 | 1131 | | |
1152 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2403 | 2403 | | |
2404 | 2404 | | |
2405 | 2405 | | |
2406 | | - | |
2407 | | - | |
2408 | 2406 | | |
2409 | 2407 | | |
2410 | 2408 | | |
2411 | 2409 | | |
2412 | 2410 | | |
2413 | 2411 | | |
2414 | 2412 | | |
2415 | | - | |
2416 | 2413 | | |
2417 | 2414 | | |
2418 | 2415 | | |
2419 | 2416 | | |
2420 | 2417 | | |
| 2418 | + | |
2421 | 2419 | | |
2422 | 2420 | | |
2423 | 2421 | | |
2424 | | - | |
2425 | 2422 | | |
2426 | | - | |
2427 | | - | |
| 2423 | + | |
2428 | 2424 | | |
2429 | | - | |
2430 | | - | |
2431 | 2425 | | |
2432 | 2426 | | |
2433 | 2427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | | - | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
This file was deleted.
0 commit comments