babel-plugin-syntax-typescript

Allow parsing of TypeScript syntax

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-syntax-typescript
7.0.0-alpha.195 years ago5 years agoMinified + gzip package size for babel-plugin-syntax-typescript in KB

Readme

babel-plugin-syntax-typescript

Installation

npm install --save-dev babel-plugin-syntax-typescript

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["syntax-typescript"]
}

Via CLI

babel --plugins syntax-typescript script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-typescript"]
});