This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Commit edfd293
committed
fix: importing an optional peer dep should throw an runtime error
1 parent bf77840 commit edfd293
2 files changed
Lines changed: 5 additions & 13 deletions
File tree
- packages/vite/src/node/plugins
- playground/optimize-deps/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
| 775 | + | |
783 | 776 | | |
784 | 777 | | |
785 | 778 | | |
| |||
1048 | 1041 | | |
1049 | 1042 | | |
1050 | 1043 | | |
1051 | | - | |
| 1044 | + | |
1052 | 1045 | | |
1053 | 1046 | | |
1054 | 1047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
0 commit comments