Skip to content

Commit

Permalink
Integrated babel-plugin-transform-regexp-constructors into preset. (#199
Browse files Browse the repository at this point in the history
)

* Integrated babel-plugin-transform-regexp-constructors into preset.

* re-ordered package.json to be alphabetical.
  • Loading branch information
shinew authored and kangax committed Oct 20, 2016
1 parent 8637e35 commit 417a539
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# babel-plugin-transform-regexp-constructors

This changes RegExp constructors into literals if and only if the RegExp
arguments are string literals.
This changes RegExp constructors into literals if the RegExp arguments are strings.

## Example

Expand Down
16 changes: 16 additions & 0 deletions packages/babel-plugin-transform-regexp-constructors/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "babel-plugin-transform-regexp-constructors",
"version": "0.0.1",
"description": "This changes RegExp constructors into literals if the RegExp arguments are strings.",
"homepage": "https://github.com/babel/babili#readme",
"repository": "https://github.com/babel/babili/tree/master/packages/babel-plugin-transform-regexp-constructors",
"bugs": "https://github.com/babel/babili/issues",
"author": "shinew",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {},
"devDependencies": {}
}
1 change: 1 addition & 0 deletions packages/babel-preset-babili/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"babel-plugin-transform-merge-sibling-variables": "^6.8.0",
"babel-plugin-transform-minify-booleans": "^6.8.0",
"babel-plugin-transform-property-literals": "^6.8.0",
"babel-plugin-transform-regexp-constructors": "^0.0.1",
"babel-plugin-transform-simplify-comparison-operators": "^6.8.0",
"babel-plugin-transform-undefined-to-void": "^6.8.0"
},
Expand Down

0 comments on commit 417a539

Please sign in to comment.