UNPKG

496 BJavaScriptView Raw
1const reactExternal = {
2 root: 'React',
3 commonjs2: 'react',
4 commonjs: 'react',
5 amd: 'react',
6};
7
8const reactDomExternal = {
9 root: 'ReactDOM',
10 commonjs2: 'react-dom',
11 commonjs: 'react-dom',
12 amd: 'react-dom',
13};
14
15module.exports = {
16 output: {
17 library: 'GoogleMapReact',
18 libraryTarget: 'umd',
19 },
20 externals: {
21 react: reactExternal,
22 'react-dom': reactDomExternal,
23 },
24 module: {
25 loaders: [{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' }],
26 },
27};