babel-preset-cozy-app
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -6,2 +6,18 @@ # Change Log | ||
# 1.8.0 (2020-02-25) | ||
### Bug Fixes | ||
* **cozy-harvest-lib:** Always show account form when editing an account ([a8718cd](https://github.com/cozy/cozy-libs/commit/a8718cd)) | ||
### Features | ||
* Remove proptype in production mode ([4287527](https://github.com/cozy/cozy-libs/commit/4287527)) | ||
# 1.7.0 (2019-09-05) | ||
@@ -8,0 +24,0 @@ |
@@ -129,2 +129,8 @@ 'use strict' | ||
] | ||
if ( | ||
process.env.BABEL_ENV === 'production' || | ||
process.env.BABEL_ENV === 'transpilation' | ||
) { | ||
plugins.push(['transform-react-remove-prop-types']) | ||
} | ||
if (!node && transformRuntime !== false) { | ||
@@ -131,0 +137,0 @@ plugins.push( |
{ | ||
"name": "babel-preset-cozy-app", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Babel preset for Cozy Application (Cozy Cloud)", | ||
@@ -28,6 +28,7 @@ "author": "CPatchane <code@patchane.com>", | ||
"@babel/runtime": "7.2.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"browserslist-config-cozy": "^0.3.0", | ||
"lodash": "4.17.15" | ||
}, | ||
"gitHead": "9930210abe2e03d5e3cf09af4d15cd3dc3116b10" | ||
"gitHead": "2e54359506fd4304bf83c4a7adb51e578ccf9046" | ||
} |
@@ -25,4 +25,8 @@ <h1 align="center">Babel Preset Cozy App</h1> | ||
This package is a Babel preset already used by [`create-cozy-app`](https://github.com/CPatchane/create-cozy-app). | ||
This package is a Babel preset used by all our applications and libs at Cozy. | ||
### Features | ||
* Removal of PropTypes in production build | ||
* Optionally converts ES6 imports to ES5 requires (deactivated for libs, important for down the stream tree shaking) | ||
To install: | ||
@@ -29,0 +33,0 @@ |
18467
186
161
11
3