hold-event
Version:
Provides key hold-start, holding, hold-end and other events.
33 lines (30 loc) • 598 B
JavaScript
import pkg from './package.json' assert { type: 'json' };
import rollupTypescript from '@rollup/plugin-typescript';
import typescript from 'typescript';
const license = `/*!
* ${ pkg.name }
* https://github.com/${ pkg.repository }
* (c) 2020 @yomotsu
* Released under the MIT License.
*/`;
export default {
input: 'src/index.ts',
output: [
{
format: 'umd',
name: 'holdEvent',
file: pkg.main,
banner: license,
indent: '\t',
},
{
format: 'es',
file: pkg.module,
banner: license,
indent: '\t',
}
],
plugins: [
rollupTypescript( { typescript } ),
],
};