forked from jfcere/ngx-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
45 lines (44 loc) · 1.1 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
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
export default {
input: 'dist/lib/index.js',
output: {
file: 'dist/bundles/ngx-markdown.umd.js',
format: 'umd',
},
sourceMap: false,
name: 'ngx.markdown',
plugins: [
resolve({
jsnext: true,
main: true,
}),
commonjs({
include: 'dist/lib/**',
extensions: ['.js'],
ignoreGlobal: false,
sourceMap: false,
namedExports: { 'node_modules/marked/lib/marked.js': ['marked'] },
}),
],
globals: {
'@angular/core': 'ng.core',
'@angular/http': 'ng.http',
'marked': 'marked',
'rxjs/add/observable/throw': 'rxjs.throw',
'rxjs/add/operator/catch': 'rxjs.catch',
'rxjs/add/operator/map': 'rxjs.map',
'rxjs/Observable': 'rxjs.observable',
'rxjs/observable/ErrorObservable': 'rxjs.errorObservable',
},
external: [
'@angular/core',
'@angular/http',
'marked',
'rxjs/add/observable/throw',
'rxjs/add/operator/catch',
'rxjs/add/operator/map',
'rxjs/Observable',
'rxjs/observable/ErrorObservable',
],
}