redux-devtools/webpack.config.base.js
2015-10-03 23:44:23 +03:00

45 lines
782 B
JavaScript

'use strict';
var webpack = require('webpack');
var reactExternal = {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
};
var reactReduxExternal = {
root: 'ReactRedux',
commonjs2: 'react-redux',
commonjs: 'react-redux',
amd: 'react-redux'
};
var reduxExternal = {
root: 'Redux',
commonjs2: 'redux',
commonjs: 'redux',
amd: 'redux'
};
module.exports = {
externals: {
'react': reactExternal,
'react-native': reactExternal,
'react-redux': reactReduxExternal,
'redux': reduxExternal
},
module: {
loaders: [
{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ }
]
},
output: {
library: 'ReduxDevTools',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js']
}
};