mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 20:27:07 +03:00
32 lines
728 B
JavaScript
32 lines
728 B
JavaScript
|
import typescript from 'rollup-plugin-typescript2';
|
||
|
import babel from '@rollup/plugin-babel';
|
||
|
|
||
|
const config = [
|
||
|
{
|
||
|
input: 'src/index.ts',
|
||
|
output: [
|
||
|
{ file: 'dist/redux-devtools-chart-monitor.cjs.js', format: 'cjs' },
|
||
|
{ file: 'dist/redux-devtools-chart-monitor.esm.js', format: 'esm' },
|
||
|
],
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
babel({
|
||
|
babelHelpers: 'runtime',
|
||
|
extensions: ['.ts', '.tsx'],
|
||
|
plugins: ['@babel/plugin-transform-runtime'],
|
||
|
}),
|
||
|
],
|
||
|
external: [
|
||
|
/@babel\/runtime/,
|
||
|
'react',
|
||
|
'prop-types',
|
||
|
'redux-devtools-themes',
|
||
|
'@redux-devtools/core',
|
||
|
'deepmerge',
|
||
|
'd3-state-visualizer',
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default config;
|