UNPKG

react-typing-hook

Version:

Animated typing in ~400 bytes 🐡 of React Hook.

38 lines (36 loc) 720 B
import typescript from 'rollup-plugin-typescript2' import css from 'rollup-plugin-css-only' import pkg from './package.json' export default { input: 'src/index.ts', output: [ { file: pkg.module, format: 'esm', sourcemap: true, exports: 'default' }, { file: pkg.main, format: 'cjs', sourcemap: true, exports: 'default' }, { file: pkg.unpkg, format: 'umd', name: 'useTyping', sourcemap: true, globals: { react: 'React' } } ], plugins: [ typescript(), css({ output: 'dist/index.css' }) ], external: [ ...Object.keys(pkg.peerDependencies) ] }