mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
24 lines
582 B
JavaScript
24 lines
582 B
JavaScript
|
import typescript from 'rollup-plugin-typescript2';
|
||
|
import babel from '@rollup/plugin-babel';
|
||
|
|
||
|
const config = [
|
||
|
{
|
||
|
input: 'src/index.ts',
|
||
|
output: [
|
||
|
{ file: 'dist/react-base16-styling.cjs.js', format: 'cjs' },
|
||
|
{ file: 'dist/react-base16-styling.esm.js', format: 'esm' },
|
||
|
],
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
babel({
|
||
|
babelHelpers: 'runtime',
|
||
|
extensions: ['.ts'],
|
||
|
plugins: ['@babel/plugin-transform-runtime'],
|
||
|
}),
|
||
|
],
|
||
|
external: [/@babel\/runtime/, 'base16', 'color', 'lodash.curry'],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default config;
|