29 lines
512 B
JavaScript
29 lines
512 B
JavaScript
|
var config = {
|
||
|
mode: process.env.NODE_ENV,
|
||
|
entry: './src/LoadingOverlay.js',
|
||
|
output: {
|
||
|
library: 'LoadingOverlay',
|
||
|
libraryTarget: 'umd'
|
||
|
},
|
||
|
externals: {
|
||
|
'react': {
|
||
|
root: 'React',
|
||
|
commonjs2: 'react',
|
||
|
commonjs: 'react',
|
||
|
amd: 'react'
|
||
|
},
|
||
|
'react/lib/ReactCSSTransitionGroup': 'ReactCSSTransitionGroup',
|
||
|
'react-dom': 'ReactDOM'
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
use: 'babel-loader'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = config
|