mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 04:07:34 +03:00
fa1aa952a6
* ramda
* open
* react-icons
* semver
* uuid
* terser-webpack-plugin
* socketcluster-client
* yarn.lock
* More
* Revert "More"
This reverts commit 84f092b7e0
.
* Fix
* snapshot
39 lines
801 B
JavaScript
39 lines
801 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = (env = {}) => ({
|
|
mode: env.production ? 'production' : 'development',
|
|
entry: {
|
|
app: ['./src/index.js'],
|
|
},
|
|
output: {
|
|
library: 'ReactJsonTree',
|
|
libraryExport: 'default',
|
|
libraryTarget: 'umd',
|
|
path: path.resolve(__dirname, 'umd'),
|
|
filename: env.production ? 'react-json-tree.min.js' : 'react-json-tree.js',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
externals: {
|
|
react: {
|
|
root: 'React',
|
|
commonjs2: 'react',
|
|
commonjs: 'react',
|
|
amd: 'react',
|
|
},
|
|
'react-dom': {
|
|
root: 'ReactDOM',
|
|
commonjs2: 'react-dom',
|
|
commonjs: 'react-dom',
|
|
amd: 'react-dom',
|
|
},
|
|
},
|
|
});
|