d2-ui
Version:
26 lines (24 loc) • 625 B
JavaScript
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'index.js',
library: 'SharingDialog',
libraryTarget: 'umd'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
{ test: /\.jsx$/, loader: 'babel-loader', exclude: /node_modules/ }
]
},
externals: {
"react": {
root: 'React',
amd: 'react',
commonjs2: 'react',
commonjs: 'react'
}
}
}