Skip to content

Commit

Permalink
Fix: add pure calls annotations for better tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed May 1, 2019
1 parent 841ceea commit cf04dfc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@babel/preset-typescript"
],
"plugins": [
"annotate-pure-calls",
"date-fns",
[
"transform-imports",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@types/stylelint": "^9.4.2",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^1.4.2",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-date-fns": "^0.2.1",
"babel-plugin-transform-imports": "^1.5.1",
"eslint": "^5.15.1",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,11 @@ axobject-query@^2.0.2:
dependencies:
ast-types-flow "0.0.7"

babel-plugin-annotate-pure-calls@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/babel-plugin-annotate-pure-calls/-/babel-plugin-annotate-pure-calls-0.4.0.tgz#78aa00fd878c4fcde4d49f3da397fcf5defbcce8"
integrity sha512-oi4M/PWUJOU9ZyRGoPTfPMqdyMp06jbJAomd3RcyYuzUtBOddv98BqLm96Lucpi2QFoQHkdGQt0ACvw7VzVEQA==

babel-plugin-date-fns@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/babel-plugin-date-fns/-/babel-plugin-date-fns-0.2.1.tgz#17b6e4666a05411857ac04af4318ff5fb72895f2"
Expand Down

0 comments on commit cf04dfc

Please sign in to comment.