File: rollup.config.js

package info (click to toggle)
node-tippex 3.0.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 168 kB
  • sloc: makefile: 10; sh: 9
file content (19 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import buble from 'rollup-plugin-buble';
import nodeResolve from 'rollup-plugin-node-resolve';

const pkg = require( './package.json' );

export default {
	input: 'src/index.js',
	plugins: [
		nodeResolve(),
		buble({ exclude: 'node_modules/**' })
	],
	name: 'tippex',
	sourcemap: true,
	external: ['locate-character'],
	output: [
		{ file: pkg.main, format: 'umd' },
		{ file: pkg.module, format: 'es' }
	]
};