Skip to content

Commit

Permalink
Merge pull request #14 from Andarist/tree-shaking-improvements
Browse files Browse the repository at this point in the history
Annotate curry calls as #__PURE__
  • Loading branch information
selfrefactor authored Jun 4, 2018
2 parents f0bd0f3 + 24b21b9 commit f3536d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"modules" : false
}]
],
"plugins": ["external-helpers"]
"plugins": [
"external-helpers",
"annotate-pure-calls"
]
},
"test": {
"presets": [
Expand All @@ -17,4 +20,4 @@
]
}
}
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "./dist/rambdax.cjs.js",
"module": "./dist/rambdax.esm.js",
"typings": "./index.d.ts",
"sideEffects": false,
"scripts": {
"dev": "jest --watch",
"devx": "jest --watch __tests__/mapAsync",
Expand Down Expand Up @@ -47,6 +48,7 @@
"rollup-plugin-node-resolve"
],
"devDependencies": {
"babel-plugin-annotate-pure-calls": "^0.2.2",
"babel-plugin-external-helpers": "^7.0.0-beta.3",
"babel-preset-env": "^1.6.1",
"commit-message": "https://github.com/selfrefactor/commit-message#3.0.0",
Expand All @@ -67,4 +69,4 @@
"build"
]
}
}
}
14 changes: 12 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ babel-messages@^6.23.0:
dependencies:
babel-runtime "^6.22.0"

babel-plugin-annotate-pure-calls@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/babel-plugin-annotate-pure-calls/-/babel-plugin-annotate-pure-calls-0.2.2.tgz#a0d8c27361db4a518d925a7202f8854382b17594"
dependencies:
babel-plugin-syntax-dynamic-import "^6.18.0"

babel-plugin-check-es2015-constants@^6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
Expand Down Expand Up @@ -422,6 +428,10 @@ babel-plugin-syntax-async-functions@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"

babel-plugin-syntax-dynamic-import@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"

babel-plugin-syntax-exponentiation-operator@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
Expand Down Expand Up @@ -3160,9 +3170,9 @@ rambda@^1.0.9, rambda@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/rambda/-/rambda-1.1.0.tgz#f184f22acead64287c74c9de94853fb4cc32b852"

"rambda@git+https://github.com/selfrefactor/rambda.git#1.1.0":
"rambda@https://github.com/selfrefactor/rambda#1.1.0":
version "1.0.9"
resolved "git+https://github.com/selfrefactor/rambda.git#ee04b4005da84b29d166364100d50e2a9be56a60"
resolved "https://github.com/selfrefactor/rambda#ee04b4005da84b29d166364100d50e2a9be56a60"

rambdax@^0.8.10, rambdax@^0.8.8:
version "0.8.10"
Expand Down

0 comments on commit f3536d5

Please sign in to comment.