This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/Microsoft/TypeScript/issues/16577#issuecomment-343699395 | |
const path = require('path'); | |
const ts = require('typescript'); | |
const { isImportDeclaration, isExportDeclaration, isStringLiteral } = require('tsutils/typeguard/node'); | |
function getCustomTransformers() { | |
return { before: [stripJsExt] } | |
function stripJsExt(context) { |