mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
45 lines
782 B
JavaScript
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']
|
|
}
|
|
}; |