aboutsummaryrefslogtreecommitdiffstats
path: root/rollup.angular.umd.config.js
blob: 547c6a9cb282cd926d6d4fb22ca9db86fe68c744 (plain)
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
export default {
    input: './build/angular/index.js',
    output: {
        name: 'sdcUiAngular',
        file: './lib/angular/index.umd.js',
        format: 'umd',
        exports: 'named',
        globals: {
            '@angular/core': 'ngCore',
            '@angular/common': 'ngCommon',
            '@angular/forms': 'ngForms'
        }
    },
    external: [
        '@angular/core',
        '@angular/common',
        '@angular/common/http',
        '@angular/upgrade/static',
        '@angular/forms',
        '@angular/platform-browser',
        '@angular/http', 
        '@rxjs/add/operator/debounceTime',
        'rxjs/Subject',
        'rxjs/add/operator/debounceTime',
        'rxjs/add/operator/map',
        'rxjs/BehaviorSubject',
        'rxjs/Subject'
    ],
    onwarn: function(warning) {
        // Skip certain warnings
    
        // should intercept ... but doesn't in some rollup versions
        if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
    
        // console.warn everything else
        console.warn( warning.message );
    }
};