diff --git a/.babelrc b/.babelrc index 37daa8a..616fca9 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { "presets": ["es2015"], - "plugins": ["add-module-exports", "transform-es2015-modules-commonJS"] + "plugins": ["add-module-exports", "transform-es2015-modules-commonjs"] } diff --git a/README.md b/README.md index 0011045..3cd0962 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Morphism is curried function that allows a partial application with a semantic c #### As a Mapper factory ```js -var Morphism = require('morphism'); +const Morphism = require('morphism'); // (ES6 Import) import Morphism from 'morphism'; let mapping = { ... } let collectionOfObjects = [ ... ] @@ -34,7 +34,7 @@ myAwesomeMapper(anotherCollection); #### As a Static instance ```js -var Morphism = require('morphism'); +const Morphism = require('morphism'); let mapping = { ... } let collectionOfObjects = [ ... ]