Skip to content

Commit

Permalink
Add Webpack and React Native simple shared configs. (closes #283)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher committed Jun 30, 2016
1 parent 81d584a commit cdf377d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/react-native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* - adds platform extensions to Node resolver
*/
module.exports = {
settings: {
'import/resolver': {
node: {
// Note: will not complain if only _one_ of these files exists.
extensions: ['.js', '.ios.js', '.android.js'],
},
},
},
}
8 changes: 8 additions & 0 deletions resolvers/webpack/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* The simplest possible config to get it running with defaults.
*/
module.exports = {
settings: {
'import/resolver': 'webpack',
},
}
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export const configs = {

// useful stuff for folks using various environments
'react': require('../config/react'),
'react-native': require('../config/react-native'),
'electron': require('../config/electron'),
}

0 comments on commit cdf377d

Please sign in to comment.