diff --git a/docs/caveats.md b/docs/caveats.md index c7d9e17e7d..ebcd403a65 100644 --- a/docs/caveats.md +++ b/docs/caveats.md @@ -10,14 +10,18 @@ Babel feature requirements by using [@babel/polyfill](polyfill.md). You may alternatively/selectively include what you need: -| Feature | Requirements | -| --------------------------- | ------------------------------------------------------------------------------------- | +| Feature | Requirements | +| --------------------------- | ------------------------------------------------------------------------------------------------------- | | Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) | -| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | -| Spread | `Array.from` | +| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | +| Spread | `Array.from` | There is also the `loose` option for some of these plugins. +## Built-ins + +Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others), if polyfilled, are modified in a manner that is spec-compliant. + ## Classes Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed diff --git a/website/versioned_docs/version-6.26.3/caveats.md b/website/versioned_docs/version-6.26.3/caveats.md index 80ce8ad811..91b5c7c136 100644 --- a/website/versioned_docs/version-6.26.3/caveats.md +++ b/website/versioned_docs/version-6.26.3/caveats.md @@ -11,14 +11,18 @@ Babel feature requirements by using [babel-polyfill](polyfill.md). You may alternatively/selectively include what you need: -| Feature | Requirements | -| --------------------------- | ------------------------------------------------------------------------------------- | +| Feature | Requirements | +| --------------------------- | ------------------------------------------------------------------------------------------------------- | | Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) | -| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | -| Spread | `Array.from` | +| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | +| Spread | `Array.from` | There is also the `loose` option for some of these plugins. +## Built-ins + +Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others), if polyfilled, are modified in a manner that is spec-compliant. + ## Classes Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed diff --git a/website/versioned_docs/version-7.0.0/caveats.md b/website/versioned_docs/version-7.0.0/caveats.md index 901180062b..88e0558923 100644 --- a/website/versioned_docs/version-7.0.0/caveats.md +++ b/website/versioned_docs/version-7.0.0/caveats.md @@ -11,14 +11,18 @@ Babel feature requirements by using [@babel/polyfill](polyfill.md). You may alternatively/selectively include what you need: -| Feature | Requirements | -| --------------------------- | ------------------------------------------------------------------------------------- | +| Feature | Requirements | +| --------------------------- | ------------------------------------------------------------------------------------------------------- | | Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) | -| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | -| Spread | `Array.from` | +| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` | +| Spread | `Array.from` | There is also the `loose` option for some of these plugins. +## Built-ins + +Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others), if polyfilled, are modified in a manner that is spec-compliant. + ## Classes Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed