react-plaid
Version:
React plaid link
37 lines (33 loc) • 630 B
JavaScript
;
var webpack = require('webpack');
var plugins = [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
];
module.exports = {
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' }
]
},
externals: [
{
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
}
],
output: {
library: 'ReactPlaid',
libraryTarget: 'umd'
},
plugins: plugins,
resolve: {
extensions: ['', '.js']
}
};