-
Notifications
You must be signed in to change notification settings - Fork 1
/
.fssrc.js
55 lines (51 loc) · 1.14 KB
/
.fssrc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// vim: set ft=javascript fdm=marker et ff=unix tw=80 sw=2:
var path = require('path')
var babel = require('rollup-plugin-babel')
var dependencies = require('./package.json').dependencies
var plugins = [
babel({
babelrc: true,
runtimeHelpers: true,
exclude: 'node_modules/**'
}),
'resolve',
'commonjs'
]
var banner = `/*! A promise implementation of Promises/A+, and with es7 promise enhancements. | MIT Licensed | https://fedor.io/ */`
module.exports = {
rollup: {
destDir: path.join(__dirname, './dist'),
dependencies,
entry: [
{
input: 'src/promise.js',
plugins,
targets: [
{
format: 'umd',
name: 'ES6Promise',
file: 'promise.umd.js',
banner
},
{
format: 'es',
file: 'promise.esm.js',
banner
}
]
},
{
input: 'src/promise.polyfill.js',
plugins,
targets: [
{
format: 'umd',
name: 'ES6Promise',
file: 'promise.polyfill.js',
banner
}
]
}
]
}
}