diff --git a/packages/babel-plugin-transform-regexp-constructors/README.md b/packages/babel-plugin-transform-regexp-constructors/README.md index 2ba6a45ed..6facc34e4 100644 --- a/packages/babel-plugin-transform-regexp-constructors/README.md +++ b/packages/babel-plugin-transform-regexp-constructors/README.md @@ -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 diff --git a/packages/babel-plugin-transform-regexp-constructors/package.json b/packages/babel-plugin-transform-regexp-constructors/package.json new file mode 100644 index 000000000..d5dbed24f --- /dev/null +++ b/packages/babel-plugin-transform-regexp-constructors/package.json @@ -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": {} +} diff --git a/packages/babel-preset-babili/package.json b/packages/babel-preset-babili/package.json index 80c770842..7259642c9 100644 --- a/packages/babel-preset-babili/package.json +++ b/packages/babel-preset-babili/package.json @@ -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" },