Babel loose (#7452)

* Use loose mode for babel
* Add note about loose mode in performance docs
This commit is contained in:
Jukka Kurkela
2020-06-06 00:03:54 +03:00
committed by Evert Timberg
parent 937845956c
commit 35520dfca8
4 changed files with 23 additions and 19 deletions

View File

@@ -122,9 +122,9 @@ function updateConfig(chart) {
chart._animationsDisabled = isAnimationDisabled(newOptions);
}
const KNOWN_POSITIONS = new Set(['top', 'bottom', 'left', 'right', 'chartArea']);
const KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
function positionIsHorizontal(position, axis) {
return position === 'top' || position === 'bottom' || (!KNOWN_POSITIONS.has(position) && axis === 'x');
return position === 'top' || position === 'bottom' || (KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x');
}
function compare2Level(l1, l2) {