@wordpress/babel-preset-default 8.7.1-next.5368f64a9.0 → 8.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/polyfill.js +196 -296
- package/build/polyfill.min.js +7 -1
- package/index.js +14 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ For example, if you'd like to use a new language feature proposal which has not
|
|
|
43
43
|
|
|
44
44
|
There is a complementary `build/polyfill.js` (minified version – `build/polyfill.min.js`) file available that polyfills ECMAScript features missing in the [browsers supported](https://make.wordpress.org/core/handbook/best-practices/browser-support/) by the WordPress project ([#31279](https://github.com/WordPress/gutenberg/pull/31279)). It's a drop-in replacement for the deprecated `@babel/polyfill` package, and it's also based on [`core-js`](https://github.com/zloirock/core-js) project.
|
|
45
45
|
|
|
46
|
-
This needs to be included
|
|
46
|
+
This needs to be included in some cases, if the features being used require polyfills. You can either prepend it to your compiled code or include it in a `<script>` before it.
|
|
47
47
|
|
|
48
48
|
#### TC39 Proposals
|
|
49
49
|
|