diff --git a/.yarn/versions/b3ee5c53.yml b/.yarn/versions/b3ee5c53.yml new file mode 100644 index 000000000000..c102b820e303 --- /dev/null +++ b/.yarn/versions/b3ee5c53.yml @@ -0,0 +1,9 @@ +releases: + "@yarnpkg/pnp": patch + +declined: + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/nm" + - "@yarnpkg/pnpify" + - "@yarnpkg/sdks" diff --git a/packages/yarnpkg-pnp/sources/esm-loader/loaderUtils.ts b/packages/yarnpkg-pnp/sources/esm-loader/loaderUtils.ts index cdea66901092..ac28528ae867 100644 --- a/packages/yarnpkg-pnp/sources/esm-loader/loaderUtils.ts +++ b/packages/yarnpkg-pnp/sources/esm-loader/loaderUtils.ts @@ -36,6 +36,9 @@ export function getFileFormat(filepath: string): string | null { case `.mjs`: { return `module`; } + case `.mts`: { + return `module`; + } case `.cjs`: { return `commonjs`; }