babel-plugin-minify-replace
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "babel-plugin-minify-replace", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/babel/babili#readme", |
@@ -46,3 +46,3 @@ # babel-plugin-minify-replace | ||
```sh | ||
$ npm install babel-plugin-minify-replace | ||
npm install babel-plugin-minify-replace | ||
``` | ||
@@ -61,12 +61,18 @@ | ||
} | ||
``` | ||
// with plugins | ||
```json | ||
// with options | ||
{ | ||
"plugins": ["minify-replace", { | ||
"identifierName": "__DEV__", | ||
"replacement": { | ||
"type": "booleanLiteral", | ||
"value": true | ||
} | ||
}] | ||
"plugins": [ | ||
["minify-replace", { | ||
"replacements": [{ | ||
"identifierName": "__DEV__", | ||
"replacement": { | ||
"type": "booleanLiteral", | ||
"value": true | ||
} | ||
}] | ||
}] | ||
] | ||
} | ||
@@ -78,3 +84,3 @@ ``` | ||
```sh | ||
$ babel --plugins minify-replace script.js | ||
babel --plugins minify-replace script.js | ||
``` | ||
@@ -81,0 +87,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4167
92
1