diff --git a/packages/register/esm.mts b/packages/register/esm.mts index 2c55a2f99..5167787d7 100644 --- a/packages/register/esm.mts +++ b/packages/register/esm.mts @@ -31,6 +31,7 @@ const resolver = new ResolverFactory({ configFile: TSCONFIG_PATH, references: 'auto', }, + conditionNames: ['node', 'import'], extensionAlias: { '.js': ['.ts', '.js'], '.mjs': ['.mts', '.mjs'],