Skip to content

Commit

Permalink
add docgen plugin to prod babel
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduan committed Aug 27, 2017
1 parent 0eaf239 commit 83d3877
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/react/src/server/config/babel.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ module.exports = {
require.resolve('babel-preset-minify'),
],
plugins: [
[
require.resolve('babel-plugin-react-docgen'),
{
DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES',
},
],
require.resolve('babel-plugin-transform-regenerator'),
[
require.resolve('babel-plugin-transform-runtime'),
Expand Down

0 comments on commit 83d3877

Please sign in to comment.