forked from Streamedian/html5_rtsp_player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
72 lines (69 loc) · 2.5 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import babel from 'rollup-plugin-babel';
import buble from 'rollup-plugin-buble';
import alias from 'rollup-plugin-alias';
import async from 'rollup-plugin-async';
import uglify from 'rollup-plugin-uglify';
const path = require('path');
// export default {
// entry: path.join(__dirname, 'example.js'),
// targets: [
// {dest: path.join(__dirname, 'example/streamedian.js'), format: 'es'}
// ],
// sourceMap: true,
// plugins: [
// // buble({
// // exclude: 'node_modules/**',
// // transforms: {forOf: false}
// // }),
// async(),
// babel({
// // exclude: 'node_modules/**',
// // presets: [
// // 'es2015-rollup', "stage-0"
// // ]
// }),
// uglify({
// mangle: false
// }),
// alias({
// bp_logger: path.join(__dirname,'node_modules/bp_logger/logger.js'),
// bp_event: path.join(__dirname,'node_modules/bp_event/event.js'),
// bp_statemachine: path.join(__dirname,'node_modules/bp_statemachine/statemachine.js'),
// jsencrypt: path.join(__dirname,'node_modules/jsencrypt/src/jsencrypt.js'),
// rtsp: path.join(__dirname,'node_modules/html5_rtsp_player/src'),
// streamedian: path.join(__dirname,'src'),
// })
// ]
//
// }
export default {
entry: path.join(__dirname, 'player.js'),
targets: [
{dest: path.join(__dirname, 'example/streamedian.min.js'), format: 'iife'}
],
sourceMap: true,
plugins: [
// buble({
// exclude: 'node_modules/**',
// transforms: {forOf: false}
// }),
// async(),
// babel({
// // exclude: 'node_modules/**',
// // presets: [
// // 'es2015-rollup', "stage-0"
// // ]
// }),
// uglify({
// mangle: false
// }),
alias({
bp_logger: path.join(__dirname,'node_modules/bp_logger/logger.js'),
bp_event: path.join(__dirname,'node_modules/bp_event/event.js'),
bp_statemachine: path.join(__dirname,'node_modules/bp_statemachine/statemachine.js'),
jsencrypt: path.join(__dirname,'node_modules/jsencrypt/src/jsencrypt.js'),
rtsp: path.join(__dirname,'node_modules/html5_rtsp_player/src'),
streamedian: path.join(__dirname,'src'),
})
]
}