redux-devtools/packages/react-dock/rollup.config.js

24 lines
577 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/react-dock.cjs.js', format: 'cjs' },
{ file: 'dist/react-dock.esm.js', format: 'esm' },
],
plugins: [
typescript(),
babel({
babelHelpers: 'runtime',
extensions: ['.ts', '.tsx'],
plugins: ['@babel/plugin-transform-runtime'],
}),
],
external: [/@babel\/runtime/, 'react', 'prop-types', 'lodash.debounce'],
},
];
export default config;