Skip to content

Commit

Permalink
Removed console logging from production bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Saunders committed Apr 13, 2019
1 parent 9dfe9ad commit dacdb76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
],
"plugins": [
"react-hot-loader/babel"
]
}
],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@types/sinon": "^5.0.7",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.0.4",
"babel-plugin-transform-remove-console": "^6.9.4",
"chai": "^4.2.0",
"css-loader": "^1.0.1",
"enzyme": "^3.7.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,11 @@ babel-loader@^8.0.4:
mkdirp "^0.5.1"
util.promisify "^1.0.0"

babel-plugin-transform-remove-console@^6.9.4:
version "6.9.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz#b980360c067384e24b357a588d807d3c83527780"
integrity sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=

babel-runtime@^6.18.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
Expand Down

0 comments on commit dacdb76

Please sign in to comment.