Skip to content

Commit

Permalink
Only allow ECMAScript stage 4 features (#22083)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored May 18, 2020
1 parent 0ac3546 commit c327f19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/babel-preset-default/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## Breaking Changes

- Revert enabling the `shippedProposals` flag. That flag enables the use of stage-3 proposals, but the goal of this preset is to only support stage-4 features. [#22083](https://github.com/WordPress/gutenberg/pull/22083)

## 4.12.0 (2020-04-15)

### New Features
Expand Down
4 changes: 1 addition & 3 deletions packages/babel-preset-default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ module.exports = function( api ) {
} );

const getPresetEnv = () => {
const opts = {
shippedProposals: true,
};
const opts = {};

if ( isTestEnv ) {
opts.targets = {
Expand Down
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- New `--webpack-bundle-analyzer` flag added to `build` and `start` scripts. It enables visualization for the size of webpack output files with an interactive zoomable treemap ([#22310](https://github.com/WordPress/gutenberg/pull/22310)).
- New `--webpack--devtool` flag added to `start` script. It controls how source maps are generated. See options at https://webpack.js.org/configuration/devtool/#devtool ([#22310](https://github.com/WordPress/gutenberg/pull/22310)).

### Breaking Changes

- The default babel configuration has changed to only support stage-4 proposals. This affects the `build` and `start` commands that use the bundled babel configuration; if a project provides its own, this change doesn't affect it. [#22083](https://github.com/WordPress/gutenberg/pull/22083)

## 9.1.0 (2020-05-14)

### Enhancements
Expand Down

0 comments on commit c327f19

Please sign in to comment.