Skip to content

Commit c38fd4e

Browse files
authored
Treat .mts as an ES Module
1 parent f59bbf9 commit c38fd4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/yarnpkg-pnp/sources/esm-loader/loaderUtils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export function getFileFormat(filepath: string): string | null {
3636
case `.mjs`: {
3737
return `module`;
3838
}
39+
case `.mts`: {
40+
return `module`;
41+
}
3942
case `.cjs`: {
4043
return `commonjs`;
4144
}

0 commit comments

Comments
 (0)