-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathrollup.config.js
More file actions
29 lines (27 loc) · 808 Bytes
/
Copy pathrollup.config.js
File metadata and controls
29 lines (27 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { babel } from '@rollup/plugin-babel'
const path = require('path')
const pkg = require(path.resolve(__dirname, 'package.json'))
const copyleft = `/*!
* WhatsApp Widget v${pkg.version} (c) 2020 - ${pkg.author.name}
* Contributors (https://github.com/agraris/whatsapp-widget/graphs/contributors)
* Licensed under MIT (https://github.com/agraris/whatsapp-widget/blob/master/LICENSE)
* WhatsApp Widget does not affiliate with WhatsApp Inc. in any way.
*/`
export default {
input: path.resolve(__dirname, 'src/index.js'),
output: [
{
file: `dist/js/whatsapp-widget.js`,
format: 'umd',
banner: copyleft,
name: 'WhatsAppWidget',
sourcemap: false
}
],
plugins: [
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled'
})
]
}