Gazebo_simulation-Frontend/node_modules/react-loading-overlay/webpack.config.js
2020-12-21 10:29:31 -05:00

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