Skip to content

Commit

Permalink
환경설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBeenLee committed Aug 12, 2018
1 parent d464101 commit ed74231
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

exports.modifyBabelrc = ({ babelrc }) => ({
...babelrc,
plugins: babelrc.plugins.concat(['transform-regenerator']),
})

...process.env.NODE_ENV !== 'development' && {
plugins: babelrc.plugins.concat(['transform-regenerator', 'transform-runtime']),
},
});
exports.modifyWebpackConfig = ({ config, stage }) => {
return config;
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
"@types/storybook__addon-options": "^3.2.0",
"@types/storybook__react": "^3.0.5",
"@types/webpack-env": "^1.13.1",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-runtime": "^6.26.0",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"eslint-config-xo-react": "0.11.1",
Expand Down

0 comments on commit ed74231

Please sign in to comment.