An open API service indexing awesome lists of open source software.

https://github.com/benjamn/babel-plugin-jscript

Babel plugin to fix buggy JScript named function expressions.
https://github.com/benjamn/babel-plugin-jscript

Last synced: 9 months ago
JSON representation

Babel plugin to fix buggy JScript named function expressions.

Awesome Lists containing this project

README

          

# babel-plugin-jscript

Babel plugin to fix buggy JScript named function expressions

## Installation

```sh
$ npm install babel-plugin-jscript
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
"plugins": ["jscript"]
}
```

### Via CLI

```sh
$ babel --plugins jscript script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
plugins: ["jscript"]
});
```