File: rollup.config.js

package info (click to toggle)
node-rollup-plugin-replace 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 376 kB
  • sloc: makefile: 6; sh: 2
file content (14 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import buble from 'rollup-plugin-buble';
import pkg from './package.json';

var external = Object.keys(pkg.dependencies).concat('path');

export default {
	input: 'src/index.js',
	plugins: [ buble() ],
	external,
	output: [
		{ file: pkg.main, format: 'cjs' },
		{ file: pkg.module, format: 'es' }
	]
};