Skip to content

Simple example of how to compile TypeScript files using babel

Notifications You must be signed in to change notification settings

ULL-ESIT-PL/babel-ts-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video

Watch the video

https://youtu.be/CNOmfvD8HVM?si=SXT-OMEgirmrvSiD

Install

npm i -D @babel/core @babel/cli @babel/preset-typescript
npm i -D @babel/preset-env

Configure

touch babel.config.json
{
  "presets": ["@babel/preset-typescript", "@babel/preset-env"]
}

Run

npx babel src/hello.ts  --extensions ".ts"  --out-dir=lib

About

Simple example of how to compile TypeScript files using babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published