mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-18 06:06:28 +03:00
37 lines
753 B
JavaScript
37 lines
753 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-log-monitor.cjs.js',
|
||
|
format: 'cjs',
|
||
|
},
|
||
|
{
|
||
|
file: 'dist/redux-devtools-log-monitor.esm.js',
|
||
|
format: 'esm',
|
||
|
},
|
||
|
],
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
babel({
|
||
|
babelHelpers: 'runtime',
|
||
|
extensions: ['.ts'],
|
||
|
plugins: ['@babel/plugin-transform-runtime'],
|
||
|
}),
|
||
|
],
|
||
|
external: [
|
||
|
/@babel\/runtime/,
|
||
|
'jsan',
|
||
|
'socketcluster-client',
|
||
|
'@redux-devtools/utils',
|
||
|
'@redux-devtools/instrument',
|
||
|
'rn-host-detect',
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default config;
|