forked from jibe914/Bootstrap-Confirmation
-
Notifications
You must be signed in to change notification settings - Fork 124
/
rollup.config.js
39 lines (36 loc) · 1017 Bytes
/
rollup.config.js
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
30
31
32
33
34
35
36
37
38
39
import babel from 'rollup-plugin-babel';
import replace from 'rollup-plugin-replace';
const pkg = require('./package.json');
export default {
output : {
format : 'umd',
name : 'bootstrap-confirmation',
sourcemap: true,
interop : false,
exports : 'none',
globals : {
'jquery': 'jQuery'
},
banner : `/*!
* Bootstrap Confirmation (v${pkg.version})
* @copyright 2013 Nimit Suwannagate <[email protected]>
* @copyright 2014-${(new Date()).getFullYear()} Damien "Mistic" Sorel <[email protected]>
* @licence Apache License, Version 2.0
*/`
},
external: [
'jquery',
'bootstrap'
],
plugins : [
replace({
delimiters: ['', ''],
'$VERSION' : pkg.version,
'import Popover from \'bootstrap/js/src/popover\';': 'import Popover from \'./popover\';',
'export default Confirmation;' : ''
}),
babel({
exclude: 'node_modules/**'
})
]
};