Skip to content

Commit

Permalink
Merge pull request #25 from ndbroadbent/compile_rn_libraries
Browse files Browse the repository at this point in the history
Babel should compile all react-native libraries in node_modules
  • Loading branch information
grabcode committed Apr 6, 2017
2 parents 249e525 + 63fbc26 commit 7a30adc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/webpack.config.dev.js
Expand Up @@ -18,6 +18,13 @@ module.exports = {
'babel-loader?cacheDirectory=true'
]
},
{
// Most react-native libraries include uncompiled ES6 JS.
test: /\.js$/,
include: /node_modules\/react-native-/,
loader: 'babel-loader',
query: { cacheDirectory: true }
},
{
test: /\.(gif|jpe?g|png|svg)$/,
loader: 'url-loader',
Expand Down

0 comments on commit 7a30adc

Please sign in to comment.