File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -189,17 +189,17 @@ function resolveExtension(id: string) {
189
189
return
190
190
}
191
191
192
- if ( id . endsWith ( '.mjs ' ) ) {
192
+ if ( id . endsWith ( '.cjs ' ) ) {
193
193
return {
194
194
path : idWithoutJsExt ,
195
- extensions : [ '.mts ' , '.d.mts ' ] ,
195
+ extensions : [ '.cts ' , '.d.cts ' ] ,
196
196
}
197
197
}
198
198
199
- if ( id . endsWith ( '.cjs ' ) ) {
199
+ if ( id . endsWith ( '.mjs ' ) ) {
200
200
return {
201
201
path : idWithoutJsExt ,
202
- extensions : [ '.cts ' , '.d.cts ' ] ,
202
+ extensions : [ '.mts ' , '.d.mts ' ] ,
203
203
}
204
204
}
205
205
@@ -210,7 +210,7 @@ function resolveExtension(id: string) {
210
210
211
211
/**
212
212
* Like `sync` from `resolve` package, but considers that the module id
213
- * could have a .js or .jsx extension.
213
+ * could have a .cjs, .mjs, . js or .jsx extension.
214
214
*/
215
215
function tsResolve (
216
216
source : string ,
You can’t perform that action at this time.
0 commit comments