diff --git a/src/components/ListView/ListViewPropTypes.js b/src/components/ListView/ListViewPropTypes.js index b3f31354..03a9bd92 100644 --- a/src/components/ListView/ListViewPropTypes.js +++ b/src/components/ListView/ListViewPropTypes.js @@ -1,6 +1,6 @@ import ListViewDataSource from './ListViewDataSource'; import { PropTypes } from 'react'; -import ScrollView, { propTypes as ScrollViewPropTypes } from '../ScrollView'; +import { propTypes as ScrollViewPropTypes } from '../ScrollView'; export default { ...ScrollViewPropTypes, diff --git a/webpack.config.js b/webpack.config.js index dcff5266..2d526a44 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,12 +2,11 @@ const path = require('path') const webpack = require('webpack') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; +const SRC_DIRECTORY = './src' const DIST_DIRECTORY = './dist' module.exports = { - entry: { - main: DIST_DIRECTORY - }, + entry: SRC_DIRECTORY, externals: [ { react: { @@ -18,6 +17,21 @@ module.exports = { } } ], + module: { + loaders: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel-loader', + query: { cacheDirectory: true } + }, + { + test: /\.(gif|jpe?g|png|svg)$/, + loader: 'url-loader', + query: { name: '[name].[ext]' } + } + ] + }, output: { filename: 'ReactNative.js', library: 'ReactNative',