Joffrey JAFFEUX
bbddce4d3a
DEV: updates js transpiler to use babel 7 (#10627)
Updates our js transpiler code to use Babel 7.11.6
List of changes in this commit:
- Updates plugins, babel plugins all have a new version which doesn't contain -es2015- anymore
- Drops [transform-es2015-classes](https://babeljs.io/docs/en/babel-plugin-transform-classes) this plugin shouldn't be needed now that we don't support IE
- Drops check-es2015-constants, checking constants is now part of babel and the check-constants plugin is deprecated. As a result the behavior slightly changed, and is now wrapping every const call in a readOnlyError function which would throw if assigned a new value. This explains the modified spec.
- Adds [proposal-optional-chaining](https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining)
```javascript
const obj = {
foo: {
bar: {
baz: 42,
},
},
};
const baz = obj?.foo?.bar?.baz; // 42
```
- Adds [proposal-json-strings](https://babeljs.io/docs/en/babel-plugin-proposal-json-strings)
```javascript
// IN
const ex = "before
after";
// ^ There's a U+2028 char between 'before' and 'after'
// OUT
const ex = "before\u2028after";
// ^ There's a U+2028 char between 'before' and 'after'
```
- Adds [proposal-nullish-coalescing-operator](https://babeljs.io/docs/en/babel-plugin-proposal-nullish-coalescing-operator)
```javascript
var object = {};
var foo = object.foo ?? "default"; // default
```
- Adds [proposal-logical-assignment-operators](https://babeljs.io/docs/en/babel-plugin-proposal-logical-assignment-operators)
```javascript
let a;
let b = 2;
a ||= b; // 2
```
- Adds [proposal-numeric-separator](https://babeljs.io/docs/en/babel-plugin-proposal-numeric-separator)
```javascript
let budget = 1_000_000_000_000;
console.log(budget === 10 ** 12); // true
```
- Adds proposal-object-rest-spread https://babeljs.io/docs/en/babel-plugin-proposal-object-rest-spread
```javascript
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
console.log(x); // 1
console.log(y); // 2
console.log(z); // { a: 3, b: 4 }
```
- Adds proposal-optional-catch-binding https://babeljs.io/docs/en/babel-plugin-proposal-optional-catch-binding
```javascript
try {
} catch {
} finally {
// ensures finally is available in every browsers
}
```
- Adds improved regex support for firefox through (transform-dotall-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-dotall-regex.html) and (proposal-unicode-property-regex](https://babeljs.io/docs/en/babel-plugin-proposal-unicode-property-regex)
- Drops async/generator stuff, the browser we target should allow to use this (excepts iterable async)
2020-09-15 09:26:33 +02:00
..
2020-09-11 15:11:24 +10:00
2020-03-31 14:40:58 +11:00
2020-09-10 21:37:48 +02:00
2019-12-03 10:05:53 +01:00
2020-01-09 15:11:31 +01:00
2020-08-14 18:15:30 +01:00
2020-09-10 13:41:46 +10:00
2020-09-10 09:50:16 +10:00
2019-11-25 10:23:18 +01:00
2020-07-09 13:31:48 +10:00
2020-08-03 14:17:10 +08:00
2020-02-25 11:43:17 +01:00
2020-09-09 08:58:21 +08:00
2019-01-21 10:12:23 +01:00
2020-08-29 00:11:46 +02:00
2020-08-14 12:01:31 +10:00
2019-05-13 09:31:32 +08:00
2020-05-07 12:17:15 +10:00
2020-08-06 14:35:46 -04:00
2020-08-03 17:05:11 +08:00
2020-05-15 14:23:27 +08:00
2020-08-27 20:12:13 +01:00
2020-09-14 11:58:28 +10:00
2020-08-25 09:16:32 -04:00
2019-05-13 09:31:32 +08:00
2020-05-05 13:46:57 +10:00
2018-10-12 17:03:47 +11:00
2020-08-12 15:34:27 +08:00
2020-07-16 17:43:20 +10:00
2019-12-03 10:05:53 +01:00
2020-08-20 11:15:20 +02:00
2020-09-09 11:43:34 -04:00
2020-07-16 16:26:17 -07:00
2020-09-11 13:53:56 -04:00
2020-08-12 20:03:37 -07:00
2020-08-07 16:51:53 +01:00
2020-08-07 12:08:59 -04:00
2020-01-15 11:27:12 +01:00
2020-08-31 13:14:09 +03:00
2020-06-15 10:05:22 +08:00
2019-10-02 14:01:53 +10:00
2020-05-14 20:10:59 -06:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-02-07 17:32:35 +00:00
2020-06-16 16:04:14 +02:00
2020-04-30 16:48:53 +10:00
2020-06-09 20:49:32 +05:30
2020-04-30 16:48:53 +10:00
2020-09-07 14:52:14 +10:00
2020-07-17 15:55:07 +10:00
2020-08-31 09:15:36 +10:00
2019-08-09 11:58:15 +03:00
2020-06-15 10:05:22 +08:00
2020-05-12 09:13:20 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-10-21 12:08:20 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-03-19 19:54:42 +00:00
2020-09-10 12:59:51 -03:00
2020-07-27 10:23:54 +10:00
2019-08-13 01:13:08 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-08-18 08:53:12 +01:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-05-05 13:46:57 +10:00
2019-05-13 09:31:32 +08:00
2019-12-03 10:05:53 +01:00
2020-01-05 22:08:13 +11:00
2020-09-15 09:26:33 +02:00
2020-02-18 13:37:39 +02:00
2020-09-10 17:18:45 +01:00
2020-06-15 15:47:07 +08:00
2020-08-10 16:14:15 -06:00
2019-12-03 10:05:53 +01:00
2020-08-07 16:28:43 +02:00
2020-02-20 15:15:53 +11:00
2018-10-15 15:01:45 -04:00
2020-03-09 17:37:49 +01:00
2020-02-03 14:54:50 +00:00
2019-05-13 09:31:32 +08:00
2019-12-03 10:05:53 +01:00
2019-10-02 14:01:53 +10:00
2020-07-16 18:21:30 +05:30
2020-08-12 10:16:26 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-05-01 10:03:40 +05:30
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-07-09 13:31:48 +10:00
2019-05-13 09:31:32 +08:00
2020-07-27 10:23:54 +10:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-08-05 10:33:25 -04:00
2019-05-13 09:31:32 +08:00
2019-04-29 16:41:35 +08:00
2019-05-13 09:31:32 +08:00
2020-04-30 16:48:53 +10:00
2020-07-09 13:41:33 +01:00
2020-07-22 18:00:07 +01:00
2019-05-13 09:31:32 +08:00
2020-04-17 14:59:54 -07:00
2020-07-27 10:23:54 +10:00
2020-04-01 15:42:45 -04:00
2019-05-13 09:31:32 +08:00
2020-05-15 14:01:54 +10:00
2019-05-22 17:39:44 +03:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-02-18 15:13:19 +11:00
2019-05-13 09:31:32 +08:00
2020-05-04 09:42:41 +01:00
2019-05-13 09:31:32 +08:00
2020-09-09 14:36:22 -03:00
2019-11-29 09:30:54 -05:00
2019-05-13 09:31:32 +08:00
2020-08-27 20:12:13 +01:00
2019-10-11 03:50:37 -04:00
2020-08-31 13:20:44 -06:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-04-30 16:48:53 +10:00
2020-08-31 12:36:04 +10:00
2020-06-09 10:25:43 +08:00
2020-07-22 11:42:15 -03:00
2020-08-19 09:21:02 -06:00
2019-05-13 09:31:32 +08:00
2020-08-17 15:40:47 +01:00
2020-09-02 05:40:42 +05:30
2020-05-01 08:33:57 +10:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-09-11 11:49:15 +02:00
2020-09-10 12:59:51 -03:00
2020-08-12 11:28:34 -03:00
2020-05-05 13:46:57 +10:00
2020-02-18 15:08:58 +10:00
2020-06-11 15:13:11 +08:00
2019-05-06 16:07:49 +02:00
2020-05-05 13:46:57 +10:00
2019-05-13 09:31:32 +08:00
2019-11-26 15:01:37 -05:00
2020-08-12 17:00:09 -04:00
2020-09-14 10:21:34 -04:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-09-14 11:58:28 +10:00
2019-12-03 10:05:53 +01:00
2020-07-06 18:51:38 +02:00
2020-05-12 18:16:50 -06:00
2020-04-28 16:06:35 +10:00
2019-05-13 09:31:32 +08:00
2020-07-27 10:23:54 +10:00
2019-12-17 10:34:20 +10:00
2019-05-13 09:31:32 +08:00
2020-07-27 10:23:54 +10:00
2019-05-13 09:31:32 +08:00
2019-10-02 14:01:53 +10:00
2019-05-13 09:31:32 +08:00
2019-10-02 14:01:53 +10:00
2020-09-01 17:25:24 -07:00
2019-05-20 13:47:20 +02:00
2019-05-13 09:31:32 +08:00
2020-05-05 12:15:03 -04:00
2020-03-12 16:35:28 +00:00
2020-04-15 18:34:02 +05:30
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2019-05-13 09:31:32 +08:00
2020-09-10 08:16:57 +10:00
2020-07-24 10:11:30 +08:00
2020-03-05 11:13:43 -08:00
2020-05-23 00:56:13 -04:00
2020-09-15 13:33:11 +08:00
2020-04-20 14:17:13 -04:00
2019-05-13 09:31:32 +08:00
2020-01-23 12:01:10 +10:00
2020-09-07 14:52:14 +10:00
2019-11-01 09:19:43 +10:00
2019-10-02 14:01:53 +10:00
2019-08-29 12:41:14 +01:00
2020-08-18 00:26:51 +01:00
2020-07-21 15:55:03 +08:00
2019-11-14 15:10:51 -05:00
2020-09-14 10:45:11 +10:00
2019-05-13 09:31:32 +08:00
2019-10-02 14:01:53 +10:00
2020-08-27 15:57:10 +02:00
2020-08-24 17:12:28 +10:00
2020-08-28 15:10:10 -04:00
2020-07-17 10:48:08 +01:00
2020-07-27 10:23:54 +10:00
2020-08-20 16:36:25 -04:00
2020-04-30 16:48:53 +10:00
2020-04-01 08:36:50 -05:00