@wordpress/babel-preset-default
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -1,3 +0,9 @@ | ||
## 2.1.0 (Unreleased) | ||
## 3.0.0 (Unreleased) | ||
## Breaking Change | ||
- The configured `@babel/preset-env` preset will no longer pass `useBuiltIns: 'usage'` as an option. It is therefore expected that a polyfill serve in its place, if necessary. | ||
## 2.1.0 (2018-09-05) | ||
### New Feature | ||
@@ -4,0 +10,0 @@ |
@@ -11,3 +11,2 @@ module.exports = function( api ) { | ||
}, | ||
useBuiltIns: 'usage', | ||
} ], | ||
@@ -24,5 +23,10 @@ isTestEnv && [ '@babel/preset-env', { | ||
'@babel/plugin-proposal-async-generator-functions', | ||
! isTestEnv && [ '@babel/plugin-transform-runtime', { corejs: 2 } ], | ||
! isTestEnv && [ '@babel/plugin-transform-runtime', { | ||
corejs: false, // We polyfill so we don't need core-js. | ||
helpers: true, | ||
regenerator: false, // We polyfill so we don't need regenerator. | ||
useESModules: false, | ||
} ], | ||
].filter( Boolean ), | ||
}; | ||
}; |
{ | ||
"name": "@wordpress/babel-preset-default", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Default Babel preset for WordPress development.", | ||
@@ -41,3 +41,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "df6f8da7b557894e4364c17db2dd4af0d1e20252" | ||
"gitHead": "7b17d5777076896fb25170b23d6e83e8c049240d" | ||
} |
@@ -19,2 +19,3 @@ /** | ||
configFile: false, | ||
envName: 'production', | ||
presets: [ babelPresetDefault ], | ||
@@ -21,0 +22,0 @@ } ); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
63
25349
1