babel-plugin-minify-numeric-literals
Advanced tools
Comparing version 0.4.0-alpha.6546ad11 to 0.4.0-alpha.caaefb4c
@@ -9,3 +9,2 @@ "use strict"; | ||
if (!path.node.extra) return; | ||
var normal = path.node.value.toString().replace(/^0\./, "."); | ||
@@ -27,4 +26,5 @@ var exponential = path.node.value.toExponential().replace(/\+/g, ""); | ||
} | ||
} | ||
}; | ||
}; |
{ | ||
"name": "babel-plugin-minify-numeric-literals", | ||
"version": "0.4.0-alpha.6546ad11", | ||
"version": "0.4.0-alpha.caaefb4c", | ||
"description": "Shortens numeric literals using scientific notation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,5 +46,5 @@ # babel-plugin-minify-numeric-literals | ||
```javascript | ||
require("babel-core").transform("code", { | ||
require("@babel/core").transform("code", { | ||
plugins: ["minify-numeric-literals"] | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2111