mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 19:13:56 +03:00
40 lines
879 B
JavaScript
40 lines
879 B
JavaScript
|
import typescript from 'rollup-plugin-typescript2';
|
||
|
import babel from '@rollup/plugin-babel';
|
||
|
import nodePolyfills from 'rollup-plugin-node-polyfills';
|
||
|
|
||
|
const config = [
|
||
|
{
|
||
|
input: 'src/StackTraceTab.tsx',
|
||
|
output: [
|
||
|
{
|
||
|
file: 'dist/redux-devtools-inspector-monitor-trace-tab.cjs.js',
|
||
|
format: 'cjs',
|
||
|
},
|
||
|
{
|
||
|
file: 'dist/redux-devtools-inspector-monitor-trace-tab.esm.js',
|
||
|
format: 'esm',
|
||
|
},
|
||
|
],
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
babel({
|
||
|
babelHelpers: 'runtime',
|
||
|
extensions: ['.ts', '.tsx'],
|
||
|
plugins: ['@babel/plugin-transform-runtime'],
|
||
|
}),
|
||
|
nodePolyfills(),
|
||
|
],
|
||
|
external: [
|
||
|
/@babel\/runtime/,
|
||
|
'react',
|
||
|
'redux-devtools-themes',
|
||
|
'source-map',
|
||
|
'@babel/code-frame',
|
||
|
'anser',
|
||
|
'html-entities',
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default config;
|