Commit ccc1909
authored
Modify synthetic default generation code for dual-mode module resolution (microsoft#46156)
1 parent 016d78b commit ccc1909Copy full SHA for ccc1909
14 files changed
+236-81Lines changed: 236 additions & 81 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/node
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+23-7Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2629 | 2629 | |
2630 | 2630 | |
2631 | 2631 | |
2632 | | - |
| 2632 | + |
| 2633 | + |
| 2634 | + |
| 2635 | + |
| 2636 | + |
| 2637 | + |
| 2638 | + |
| 2639 | + |
| 2640 | + |
| 2641 | + |
| 2642 | + |
| 2643 | + |
| 2644 | + |
| 2645 | + |
| 2646 | + |
| 2647 | + |
| 2648 | + |
2633 | 2649 | |
2634 | 2650 | |
2635 | 2651 | |
| ||
2672 | 2688 | |
2673 | 2689 | |
2674 | 2690 | |
2675 | | - |
| 2691 | + |
2676 | 2692 | |
2677 | 2693 | |
2678 | 2694 | |
| ||
2824 | 2840 | |
2825 | 2841 | |
2826 | 2842 | |
2827 | | - |
| 2843 | + |
2828 | 2844 | |
2829 | 2845 | |
2830 | 2846 | |
| ||
3587 | 3603 | |
3588 | 3604 | |
3589 | 3605 | |
3590 | | - |
| 3606 | + |
3591 | 3607 | |
3592 | 3608 | |
3593 | 3609 | |
| ||
30945 | 30961 | |
30946 | 30962 | |
30947 | 30963 | |
30948 | | - |
| 30964 | + |
30949 | 30965 | |
30950 | 30966 | |
30951 | 30967 | |
30952 | 30968 | |
30953 | 30969 | |
30954 | | - |
| 30970 | + |
30955 | 30971 | |
30956 | 30972 | |
30957 | 30973 | |
30958 | 30974 | |
30959 | | - |
| 30975 | + |
30960 | 30976 | |
30961 | 30977 | |
30962 | 30978 | |
|
Collapse file
tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node12).types
Copy file name to clipboardExpand all lines: tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=node12).types+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | | - |
28 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
61 | | - |
62 | | - |
| 60 | + |
| 61 | + |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
|
Collapse file
tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).types
Copy file name to clipboardExpand all lines: tests/baselines/reference/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).types+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | | - |
28 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
61 | | - |
62 | | - |
| 60 | + |
| 61 | + |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
|
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=node12).js
Copy file name to clipboard+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=node12).symbols
Copy file name to clipboard+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=node12).types
Copy file name to clipboard+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=nodenext).js
Copy file name to clipboard+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=nodenext).symbols
Copy file name to clipboard+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
Collapse file
tests/baselines/reference/nodeModulesCjsFormatFileAlwaysHasDefault(module=nodenext).types
Copy file name to clipboard+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
Collapse file
tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/nodeModulesDeclarationEmitDynamicImportWithPackageExports.js+28-34Lines changed: 28 additions & 34 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | | - |
| 125 | + |
| 126 | + |
| 127 | + |
126 | 128 | |
127 | 129 | |
128 | 130 | |
| ||
134 | 136 | |
135 | 137 | |
136 | 138 | |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
| 139 | + |
141 | 140 | |
142 | | - |
| 141 | + |
| 142 | + |
| 143 | + |
143 | 144 | |
144 | 145 | |
145 | 146 | |
| ||
151 | 152 | |
152 | 153 | |
153 | 154 | |
154 | | - |
155 | | - |
156 | | - |
157 | | - |
| 155 | + |
158 | 156 | |
159 | | - |
| 157 | + |
| 158 | + |
| 159 | + |
160 | 160 | |
161 | 161 | |
162 | 162 | |
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
| 171 | + |
175 | 172 | |
176 | 173 | |
177 | 174 | |
178 | 175 | |
179 | 176 | |
180 | | - |
181 | | - |
182 | | - |
| 177 | + |
| 178 | + |
| 179 | + |
183 | 180 | |
184 | 181 | |
185 | 182 | |
| ||
192 | 189 | |
193 | 190 | |
194 | 191 | |
195 | | - |
| 192 | + |
| 193 | + |
| 194 | + |
196 | 195 | |
197 | 196 | |
198 | 197 | |
| ||
205 | 204 | |
206 | 205 | |
207 | 206 | |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
| 207 | + |
212 | 208 | |
213 | 209 | |
214 | | - |
| 210 | + |
| 211 | + |
| 212 | + |
215 | 213 | |
216 | 214 | |
217 | 215 | |
| ||
224 | 222 | |
225 | 223 | |
226 | 224 | |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
| 225 | + |
231 | 226 | |
232 | 227 | |
233 | | - |
| 228 | + |
| 229 | + |
| 230 | + |
234 | 231 | |
235 | 232 | |
236 | 233 | |
| ||
247 | 244 | |
248 | 245 | |
249 | 246 | |
250 | | - |
251 | | - |
252 | | - |
| 247 | + |
| 248 | + |
253 | 249 | |
254 | | - |
255 | | - |
256 | 250 | |
257 | 251 | |
258 | 252 | |
|
0 commit comments