@eliumhq/babel-preset-elium
Advanced tools
Comparing version 0.4.14 to 0.5.0
@@ -5,2 +5,11 @@ # Change Log | ||
# [0.5.0](http://gitlab.com/elium/product/babel-preset-elium/compare/v0.4.14...v0.5.0) (2019-05-09) | ||
### Features | ||
* update settings from create-react-app ([3463e88](http://gitlab.com/elium/product/babel-preset-elium/commit/3463e88)) | ||
## [0.4.14](http://gitlab.com/elium/product/babel-preset-elium/compare/v0.4.13...v0.4.14) (2019-05-03) | ||
@@ -7,0 +16,0 @@ |
@@ -36,7 +36,3 @@ 'use strict' | ||
{ | ||
// `entry` transforms `@babel/polyfill` into individual requires for | ||
// the targeted browsers. This is safer than `usage` which performs | ||
// static code analysis to determine what's required. | ||
// This is probably a fine default to help trim down bundles when | ||
// end-users inevitably import '@babel/polyfill'. | ||
// Allow importing core-js in entrypoint and use browserlist to select polyfills | ||
useBuiltIns: 'entry', | ||
@@ -46,3 +42,6 @@ corejs: 3, | ||
modules: opts.modules || false, | ||
targets: opts.targets | ||
targets: opts.targets, | ||
// Exclude transforms that make all code slower | ||
// https://github.com/facebook/create-react-app/pull/5278 | ||
exclude: ['transform-typeof-symbol'] | ||
} | ||
@@ -66,3 +65,3 @@ ], | ||
{ | ||
corejs: 3 | ||
corejs: false | ||
} | ||
@@ -73,3 +72,22 @@ ], | ||
// don't work without it: https://github.com/babel/babel/issues/7215 | ||
require('@babel/plugin-transform-destructuring').default, | ||
[ | ||
require('@babel/plugin-transform-destructuring').default, | ||
{ | ||
// Use loose mode for performance: | ||
// https://github.com/facebook/create-react-app/issues/5602 | ||
loose: false, | ||
selectiveLoose: [ | ||
'useState', | ||
'useEffect', | ||
'useContext', | ||
'useReducer', | ||
'useCallback', | ||
'useMemo', | ||
'useRef', | ||
'useImperativeHandle', | ||
'useLayoutEffect', | ||
'useDebugValue', | ||
] | ||
} | ||
], | ||
// must be above class properties | ||
@@ -76,0 +94,0 @@ [ |
{ | ||
"name": "@eliumhq/babel-preset-elium", | ||
"version": "0.4.14", | ||
"version": "0.5.0", | ||
"description": "Babel preset used by Elium", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
11811
168