google-map-react
Version:
isomorphic google map react component, allows render react components on the google map
28 lines (25 loc) • 496 B
JavaScript
const reactExternal = {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react',
};
const reactDomExternal = {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom',
};
module.exports = {
output: {
library: 'GoogleMapReact',
libraryTarget: 'umd',
},
externals: {
react: reactExternal,
'react-dom': reactDomExternal,
},
module: {
loaders: [{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' }],
},
};