forked from swimlane/ngx-datatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
55 lines (47 loc) · 1.25 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
'use strict';
var typescript = require('rollup-plugin-typescript');
var sourcemaps = require('rollup-plugin-sourcemaps');
var sass = require('rollup-plugin-sass');
var pkg = require('./package.json');
var banner =
`/**
* angular2-data-table v${pkg.version} (https://github.com/swimlane/angular2-data-table)
* Copyright 2016
* Licensed under MIT
*/`;
module.exports = {
entry: './src/angular2-data-table.ts',
sourceMap: true,
moduleId: 'angular2-data-table',
moduleName: 'angular2DataTable',
banner: banner,
external: [
'typescript',
'core-js',
'@angular/core',
'@angular/common',
'@angular/core',
'@angular/platform-browser',
'@angular/platform-browser-dynamic',
'rxjs/Rx'
],
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'rxjs/Subject': 'Rx',
'rxjs/observable/PromiseObservable': 'Rx',
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/Observable': 'Rx',
'rxjs/Rx': 'Rx'
},
plugins: [
typescript({
typescript: require('typescript')
}),
sourcemaps(),
sass()
]
}