google-map-react/webpack.config.js
Moz Morris e4505e2a6b Merge umd-build branch. This closes #13
commit 8b1ed17602b01c2c63d7c341f6cc70711ff8f925
Author: Moz Morris <moz@earthview.co.uk>
Date:   Sun Jun 28 11:33:40 2015 +0100

    Fixup exports.

commit a64ce1c6fb73fe9dee9f2d0bec38574ad7d1897e
Author: Moz Morris <moz@earthview.co.uk>
Date:   Sun Jun 28 10:42:28 2015 +0100

    [added] bower support
2015-06-29 17:48:37 +01:00

39 lines
610 B
JavaScript

var webpack = require('webpack');
module.exports = {
output: {
library: 'GoogleMapReact',
libraryTarget: 'umd'
},
externals: [
{
"react": {
root: "React",
commonjs2: "react",
commonjs: "react",
amd: "react"
}
}
],
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel?loose=all' }
]
},
node: {
Buffer: false
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
]
};