Skip to content

Commit

Permalink
Move preset-env to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche committed Jun 28, 2019
1 parent 6456d84 commit f194ba0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
4.0.1
=====

* Moved `@babel/preset-env` to the correct place in the config.


4.0.0
=====

Expand Down
17 changes: 9 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ const browserslistConfigs = require("@becklyn/browserslist-config/envs");
function buildConfig (browserslistConfig)
{
return {
presets: [
// default env
["@babel/preset-env", {
spec: false,
useBuiltIns: "entry",
corejs: 3,
targets: browserslistConfig,
}],
],
plugins: [
// ------------------------------------------------------------------------------------------
// Stage 3 proposals
Expand All @@ -16,14 +25,6 @@ function buildConfig (browserslistConfig)
// set with loose: true, as the compilation is pretty big
// https://babeljs.io/docs/plugins/transform-class-properties/
["@babel/plugin-proposal-class-properties", {loose: true}],

// default env
["@babel/preset-env", {
spec: false,
useBuiltIns: "entry",
corejs: 3,
targets: browserslistConfig,
}],
],
};
}
Expand Down

0 comments on commit f194ba0

Please sign in to comment.