redux-devtools/packages/redux-devtools-slider-monitor/rollup.config.js

37 lines
756 B
JavaScript
Raw Normal View History

import typescript from 'rollup-plugin-typescript2';
import babel from '@rollup/plugin-babel';
const config = [
{
input: 'src/index.ts',
output: [
{
file: 'dist/redux-devtools-slider-monitor.cjs.js',
format: 'cjs',
},
{
file: 'dist/redux-devtools-slider-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',
'@redux-devtools/ui',
],
},
];
export default config;