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.
- Host: GitHub
- URL: https://github.com/benjamn/babel-plugin-jscript
- Owner: benjamn
- Created: 2015-07-22T22:44:09.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T16:08:23.000Z (over 9 years ago)
- Last Synced: 2025-03-31T00:16:38.413Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
});
```