babel-preset-r29
Advanced tools
Comparing version
@@ -0,1 +1,6 @@ | ||
## 1.2.0 (September 22, 2017) | ||
* Allow [loose](https://babeljs.io/docs/plugins/preset-es2015/#optionsloose) ES2015 option to be passed through | ||
- http://2ality.com/2015/12/babel6-loose-mode.html | ||
## 1.1.0 (September 21, 2017) | ||
@@ -2,0 +7,0 @@ |
@@ -8,2 +8,5 @@ 'use strict'; | ||
} | ||
if (opts.loose !== undefined) { | ||
es2015[1].loose = opts.loose; | ||
} | ||
@@ -10,0 +13,0 @@ return { |
{ | ||
"name": "babel-preset-r29", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Babel preset for Refinery29", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,2 +38,10 @@ # babel-preset-r29 | ||
### Supported options | ||
#### loose | ||
`boolean`, defaults to `false`. | ||
Turns on the ES2015 plugin's loose mode. | ||
http://2ality.com/2015/12/babel6-loose-mode.html | ||
In practice we have found that this can reduce bundle size by ~5%. | ||
#### modules | ||
@@ -40,0 +48,0 @@ `"amd" | "umd" | "systemjs" | "commonjs" | false`, defaults to "commonjs". |
2670
21.47%14
27.27%71
12.7%