Created
April 20, 2024 07:32
-
-
Save nicroto/a2c73922a5e8f83d7673212104fd22a6 to your computer and use it in GitHub Desktop.
tsx can't run/transpile endent
This file contains hidden or 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
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