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

@@ -219,3 +219,8 @@ new Chart(ctx, {
}
});
```
### When transpiling with Babel, cosider using `loose` mode
Babel 7.9 changed the way classes are constructed. It is slow, unless used with `loose` mode.
[More information](https://github.com/babel/babel/issues/11356)