1.1.0 • Published 1 year ago
babel-plugin-unsafe-optimizations-duplicated-null v1.1.0
babel-plugin-unsafe-optimizations-duplicated-null
This plugin creates local variables to store the null
value.
This allows better minification of repeated usages of null
.
For example:
const data = [null, null, null, null, null, null];
will be transformed to:
const n = null;
const data = [n, n, n, n, n, n];
Why is it unsafe?
This one actually looks safe.
Configuration
target
Selects JavaScript syntax version for the output code. Supported values are: "es5"
, "es6"
.