UNPKG

use-input-react

Version:

Simple hook to avoid re-writting onChange handler for input again and again..

27 lines (24 loc) 459 B
import typescript from 'rollup-plugin-typescript2'; import pkg from './package.json'; export default { input: './useInput.ts', output: [ { file: pkg.main, format: 'cjs', }, { file: pkg.module, format: 'es', }, ], external: [ ...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {}), ], plugins: [ typescript({ typescript: require('typescript'), }), ], };