🌜
🌞
babel-plugin-transform-eval

babel-plugin-transform-eval

v6.22.0

Compile eval calls with string literals

npm install babel-plugin-transform-eval

README

babel-plugin-transform-eval

Compile eval calls with string literals

Example

In

eval("(() => 'foo')");

Out

eval("(function () { return 'foo'; })");

Installation

$ npm install babel-plugin-transform-eval

Usage

.babelrc

{
  "plugins": ["transform-eval"]
}

Via CLI

$ babel --plugins transform-eval script.js

Via Node API

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

General

License
MIT
Typescript Types
None found
Tree-shakeable
No

Popularity

GitHub Stargazers
41.4K
Community Interest
42.8K
Number of Forks
5,455

Maintenance

Commits
10/219/22070
Last Commit
Open Issues
628
Closed Issues
7,633
Open Pull Requests
149
Closed Pull Requests
1,045

Versions

Versions Released
10/219/2201
Latest Version Released
Jan 20, 2017
Current Tags
latest6.22.0
next7.0.0-beta.3

Dependencies

Dependencies (1)
Dev Dependencies (1)

Contributors

sebmck
sebmck
Commits: 5,195
hzoo
hzoo
Commits: 1,263
loganfsmyth
loganfsmyth
Commits: 594
nicolo-ribaudo
nicolo-ribaudo
Commits: 487
existentialism
existentialism
Commits: 458
danez
danez
Commits: 433
JLHwung
JLHwung
Commits: 279
marijnh
marijnh
Commits: 264
RReverser
RReverser
Commits: 233
jamiebuilds
jamiebuilds
Commits: 224
amasad
amasad
Commits: 172
jridgewell
jridgewell
Commits: 158
xtuc
xtuc
Commits: 105
yavorsky
yavorsky
Commits: 89
kaicataldo
kaicataldo
Commits: 81