react-captcha-generator
Version:
react captcha generator
40 lines • 956 B
JavaScript
module.exports = {
entry: "./index.jsx",
output: {
path: __dirname,
libraryTarget: 'umd',
library: 'titt',
filename: "index.min.js"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015'],
plugins: ['add-module-exports']
}
}
]
},
externals: [
{
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
},
{
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
}
]
};