Skip to content

Commit

Permalink
Fix order of plugins and release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche committed Dec 12, 2017
1 parent aa98ac3 commit d4e2dc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
33 changes: 17 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
module.exports = {
// the plugins are applied from top to bottom, so the order is important.
// Especially the syntax plugins (like class properties) need to be all other plugins.
plugins: [
// ------------------------------------------------------------------------------------------
// Stage 3 proposals
// ------------------------------------------------------------------------------------------
["babel-plugin-syntax-dynamic-import"],

// set with loose: true, as the compilation is pretty big
// https://babeljs.io/docs/plugins/transform-class-properties/
["babel-plugin-transform-class-properties", {loose: true}],


// ------------------------------------------------------------------------------------------
// JSX
// ------------------------------------------------------------------------------------------
["babel-plugin-transform-react-jsx", {pragma: "h"}],

// ------------------------------------------------------------------------------------------
// ES 2015
// ------------------------------------------------------------------------------------------
Expand All @@ -20,21 +37,5 @@ module.exports = {
["babel-plugin-transform-es2015-parameters"],
["babel-plugin-transform-es2015-destructuring", {loose: false}],
["babel-plugin-transform-es2015-block-scoping"],


// ------------------------------------------------------------------------------------------
// Stage 3 proposals
// ------------------------------------------------------------------------------------------
["babel-plugin-syntax-dynamic-import"],

// set with loose: true, as the compilation is pretty big
// https://babeljs.io/docs/plugins/transform-class-properties/
["babel-plugin-transform-class-properties", {loose: true}],


// ------------------------------------------------------------------------------------------
// JSX
// ------------------------------------------------------------------------------------------
["babel-plugin-transform-react-jsx", {pragma: "h"}],
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kaba-babel-preset",
"version": "1.1.0",
"version": "1.1.1",
"description": "Babel preset for usage in kaba.",
"repository": {
"type": "git",
Expand Down

0 comments on commit d4e2dc7

Please sign in to comment.