Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 514 Bytes
'use strict';
var webpack = require('webpack');
var reactExternal = {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
module.exports = {
externals: {
'react': reactExternal
},
module: {
loaders: [
{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ }
]
},
output: {
library: 'ReduxFalcor',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js']
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin()
]
};