mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-14 13:46:55 +03:00
41 lines
942 B
JavaScript
41 lines
942 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-inspector-monitor.cjs.js', format: 'cjs' },
|
||
|
{ file: 'dist/redux-devtools-inspector-monitor.esm.js', format: 'esm' },
|
||
|
],
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
babel({
|
||
|
babelHelpers: 'runtime',
|
||
|
extensions: ['.ts', '.tsx'],
|
||
|
plugins: ['@babel/plugin-transform-runtime'],
|
||
|
}),
|
||
|
],
|
||
|
external: [
|
||
|
/@babel\/runtime/,
|
||
|
'react',
|
||
|
'prop-types',
|
||
|
'react-base16-styling',
|
||
|
'@redux-devtools/core',
|
||
|
'jss',
|
||
|
'jss-preset-default',
|
||
|
'hex-rgba',
|
||
|
'redux-devtools-themes',
|
||
|
'immutable',
|
||
|
'jsondiffpatch',
|
||
|
'react-dragula',
|
||
|
'react-json-tree',
|
||
|
'dateformat',
|
||
|
'lodash.debounce',
|
||
|
'javascript-stringify',
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default config;
|