Answers for "how babel generate typescript definitions"

0

how babel generate typescript definitions

# add this in tsconfig.json

"emitDeclarationOnly": true,

# use this command

"clean": "rimraf esm",
"compiler": "npm run clean && tsc --pretty && babel --extensions '.ts' src -d esm",
"build": "npm run compiler"
Posted by: Guest on August-17-2021

Code answers related to "how babel generate typescript definitions"

Browse Popular Code Answers by Language