Skip to content

Commit

Permalink
Minor webpack improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Feb 9, 2016
1 parent ff917ae commit 67241cd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions jsconfig.json
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -29,12 +29,13 @@
"babel-plugin-transform-class-properties": "^6.5.0",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"classnames": "^2.2.3",
"css-loader": "^0.23.1",
"file-loader": "^0.8.5",
"react-addons-css-transition-group": "^0.14.7",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.0",
"classnames": "^2.2.3"
"webpack": "^1.12.0"
},
"keywords": [
"mobservable",
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Expand Up @@ -28,7 +28,9 @@ module.exports = {
externals: {
'mobservable-react': 'mobservable-react',
react: 'react',
'react-addons-css-transition-group': 'react-addons-css-transition-group',
// 'react-addons-css-transition-group': 'react-addons-css-transition-group',
// ^^^ vvv --- since react-addons-css-transition-group is just an alias package, avoid an additonal peer dependency by just referring to the actual react implementation
'react-addons-css-transition-group': 'react/lib/ReactCSSTransitionGroup',
mobservable: 'mobservable'
},
plugins: [
Expand Down

0 comments on commit 67241cd

Please sign in to comment.