forked from jvilk/BrowserFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
40 lines (38 loc) · 940 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
40
import sourcemaps from 'rollup-plugin-sourcemaps';
import nodeResolve from 'rollup-plugin-node-resolve';
import alias from 'rollup-plugin-alias';
import buble from 'rollup-plugin-buble';
import {join} from 'path';
const outBase = join(__dirname, '..', 'build', 'temp', 'tests');
export default {
input: join(outBase, 'ts', 'test', 'harness', 'run.js'),
output: {
file: join(outBase, 'rollup', 'test.rollup.js'),
sourceMap: true,
format: 'cjs',
exports: 'named',
strict: true
},
external: [
'buffer', 'path', 'assert'
],
plugins: [
alias({
async: require.resolve('async-es'),
dropbox_bridge: join(outBase, 'ts', 'src', 'generic', 'dropbox_bridge_actual.js')
}),
nodeResolve({
main: true,
jsnext: true,
preferBuiltins: true
}),
sourcemaps({
exclude: '**/*'
}),
buble({
transforms: {
dangerousForOf: true
}
})
]
};