diff --git a/packages/core/src/helpers/prototype.ts b/packages/core/src/helpers/prototype.ts index ec1e2fc..eb3f6c9 100644 --- a/packages/core/src/helpers/prototype.ts +++ b/packages/core/src/helpers/prototype.ts @@ -35,6 +35,9 @@ export function getImportDeclarationPayloadByPrototype( if (relativeFilepath && isFilepath(sourcePath)) { sourcePath = getRelativePath(relativeFilepath, sourcePath); } + if (sourcePath.endsWith('.js')) { + sourcePath = sourcePath.slice(0, -3); + } return { defaultSpecifier,