forked from damienbod/angular-auth-oidc-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
38 lines (36 loc) · 1.08 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
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/http': 'ng.http',
'@angular/router': 'ng.router',
'rxjs/Rx': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/Observer': 'Rx',
'rxjs/BehaviorSubject': 'Rx',
'rxjs/add/operator/map': 'Rx',
'rxjs/add/operator/catch': 'Rx',
'rxjs/add/observable/throw': 'Rx',
'rxjs/add/observable/interval': 'Rx',
'rxjs/add/observable/timer': 'Rx',
'jsrsasign': 'jsrsasign'
};
export default {
entry: './dist/modules/angular-auth-oidc-client.es5.js',
dest: './dist/bundles/angular-auth-oidc-client.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.angularAuthOidcClient',
plugins: [
resolve(),
commonjs({
namedExports: {
'node_modules/jsrsasign\lib\jsrsasign.js': ['KJUR', 'KEYUTIL', 'hextob64u']
}
})
],
external: Object.keys(globals),
globals: globals,
onwarn: () => { return }
}