UNPKG

react-scroll-into-view

Version:

Simple React element that when clicked scrolls to any element on page

23 lines (22 loc) 460 B
import resolve from 'rollup-plugin-node-resolve' import babel from 'rollup-plugin-babel' import commonjs from 'rollup-plugin-commonjs' import uglify from 'rollup-plugin-uglify' export default { input: 'src/index.js', output: { file: 'dist/index.js', format: 'cjs' }, plugins: [ commonjs({ include: 'node_modules/**' }), resolve(), babel({ exclude: 'node_modules/**' }), uglify() ], external: ['react'] }