mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 17:46:56 +03:00
37b51a1bb5
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
import typescript from 'rollup-plugin-typescript2';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import babel from '@rollup/plugin-babel';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
const config = [
|
|
{
|
|
input: 'src/index.tsx',
|
|
output: {
|
|
name: 'ReactJsonTree',
|
|
file: 'lib/umd/react-json-tree.js',
|
|
format: 'umd',
|
|
globals: {
|
|
react: 'React',
|
|
},
|
|
},
|
|
plugins: [
|
|
typescript({
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
babel({
|
|
babelHelpers: 'runtime',
|
|
extensions: ['.ts', '.tsx'],
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
}),
|
|
],
|
|
external: ['react'],
|
|
},
|
|
{
|
|
input: 'src/index.tsx',
|
|
output: {
|
|
name: 'ReactJsonTree',
|
|
file: 'lib/umd/react-json-tree.min.js',
|
|
format: 'umd',
|
|
globals: {
|
|
react: 'React',
|
|
},
|
|
},
|
|
plugins: [
|
|
typescript({
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
babel({
|
|
babelHelpers: 'runtime',
|
|
extensions: ['.ts', '.tsx'],
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
}),
|
|
terser(),
|
|
],
|
|
external: ['react'],
|
|
},
|
|
];
|
|
|
|
export default config;
|