mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
0c78a5a9a7
* feat(d3-state-visualizer): convert to TypeScript * dep * Odd
27 lines
583 B
TypeScript
27 lines
583 B
TypeScript
import * as path from 'path';
|
|
|
|
export default (env: { production?: boolean } = {}) => ({
|
|
mode: env.production ? 'production' : 'development',
|
|
entry: {
|
|
app: ['./src/index'],
|
|
},
|
|
output: {
|
|
library: 'd3tooltip',
|
|
libraryTarget: 'umd',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: env.production ? 'd3tooltip.min.js' : 'd3tooltip.js',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|ts)$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
},
|
|
});
|