Skip to content

Instantly share code, notes, and snippets.

@nicroto
Created April 20, 2024 07:32
Show Gist options
  • Save nicroto/a2c73922a5e8f83d7673212104fd22a6 to your computer and use it in GitHub Desktop.
Save nicroto/a2c73922a5e8f83d7673212104fd22a6 to your computer and use it in GitHub Desktop.
tsx can't run/transpile endent
import endent from 'endent';
const stringProcessor = (str: TemplateStringsArray) => {
return ` ${str.join()}`;
};
function main() {
// console.log(stringProcessor`test`); // this works
console.log(endent`test`); // this FAILS
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment