Skip to content

Commit

Permalink
Add Babel config for production environment
Browse files Browse the repository at this point in the history
In react-dates/react-dates#791 I added an ESM build,
but ended up breaking the production build for gh-pages. Storybook
builds with NODE_ENV=production, so this should fix that problem.
  • Loading branch information
lencioni committed Oct 27, 2017
1 parent 4983f21 commit 6d88078
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
["transform-replace-object-assign", "object.assign"],
],
},
"production": {
"presets": ["airbnb"],
"plugins": [
"inline-react-svg",
["transform-replace-object-assign", "object.assign"],
],
},
"cjs": {
"presets": ["airbnb"],
"plugins": [
Expand Down

0 comments on commit 6d88078

Please sign in to comment.