/
rollup.config.dev.js
50 lines (49 loc) · 1.3 KB
/
rollup.config.dev.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
import path from 'path';
import ts from 'rollup-plugin-typescript2';
import babel from '@rollup/plugin-babel';
import serve from 'rollup-plugin-serve';
export default [
{
input: './src/core/Recorder.ts',
output: {
file: path.resolve(__dirname, './test/GLRecorder.min.js'),
format: 'umd',
name: 'GLRecorder'
},
plugins: [
ts(),
babel({ babelHelpers: 'bundled' }),
serve({
contentBase: [''],
port: 6600
}),
]
}, {
input: './src/core/Recorder.ts',
output: {
file: path.resolve(__dirname, './test/GLRecorder.esm.js'),
format: 'es',
},
plugins: [
ts(),
babel({ babelHelpers: 'bundled' }),
]
}, {
input: './src/workers/RecorderWorker.ts',
output: {
file: path.resolve(__dirname, './test/recorder-worker.js'),
format: 'es',
},
plugins: [
ts(),
babel({ babelHelpers: 'bundled' }),
]
}, {
input: './node_modules/lamejs/lame.min.js',
output: {
file: path.resolve(__dirname, './test/lame.min.js'),
format: 'es',
},
plugins: [ ]
}
]