File: rollup.config.js

package info (click to toggle)
node-buble 0.20.0%2B~0.20.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,184 kB
  • sloc: javascript: 12,756; makefile: 30; sh: 11
file content (22 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import createConfig from './rollup.create-config';
import pkg from './package.json';

const configs = [
	/* node ESM/CJS builds */
	createConfig({
		output: [
			{ format: 'es', file: pkg.module },
			{ format: 'cjs', file: pkg.main }
		],
	}),
	/* browser ESM/CJS builds (for bundlers) */
	createConfig({
		browser: true,
		output: [
			{ format: 'es', file: pkg.browser[pkg.module] },
			{ format: 'cjs', file: pkg.browser[pkg.main] }
		],
	}),
];

export default configs;