File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1874,10 +1874,10 @@ impl<C: Cache> ResolverGeneric<C> {
18741874 match ext {
18751875 // 2. If url ends in ".mjs", then
18761876 // 1. Return "module".
1877- Some ( "mjs" ) => Ok ( Some ( ModuleType :: Module ) ) ,
1877+ Some ( "mjs" | "mts" ) => Ok ( Some ( ModuleType :: Module ) ) ,
18781878 // 3. If url ends in ".cjs", then
18791879 // 1. Return "commonjs".
1880- Some ( "cjs" ) => Ok ( Some ( ModuleType :: CommonJs ) ) ,
1880+ Some ( "cjs" | "cts" ) => Ok ( Some ( ModuleType :: CommonJs ) ) ,
18811881 // 4. If url ends in ".json", then
18821882 // 1. Return "json".
18831883 Some ( "json" ) => Ok ( Some ( ModuleType :: Json ) ) ,
@@ -1890,7 +1890,7 @@ impl<C: Cache> ResolverGeneric<C> {
18901890 // 11. If url ends in ".js", then
18911891 // 1. If packageType is not null, then
18921892 // 1. Return packageType.
1893- Some ( "js" ) => {
1893+ Some ( "js" | "ts" ) => {
18941894 // 7. Let packageURL be the result of LOOKUP_PACKAGE_SCOPE(url).
18951895 // 8. Let pjson be the result of READ_PACKAGE_JSON(packageURL).
18961896 let package_json =
You can’t perform that action at this time.
0 commit comments