You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
738 B

import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import strip from '@rollup/plugin-strip';
import url from '@rollup/plugin-url';
import babel from 'rollup-plugin-babel';
import svgr from '@svgr/rollup';
import { sizeSnapshot } from 'rollup-plugin-size-snapshot';
const input = './src/index.tsx';
const extensions = ['.js', '.jsx', '.ts', '.tsx'];
export default {
input,
plugins: [
resolve({ extensions, preferBuiltins: true }),
commonjs(),
babel({
extensions,
exclude: 'node_modules/**',
runtimeHelpers: true,
}),
url({
limit: 10 * 1024,
}),
svgr(),
strip({ debugger: true }),
sizeSnapshot({ printInfo: false }),
],
};