mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
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
39 lines
610 B
JavaScript
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)
|
|
})
|
|
]
|
|
|
|
};
|