@@ -33,19 +33,21 @@ if (MINIFY) plugins.push(visualizer({ sourcemap: true }));
33
33
34
34
let extension = MINIFY ? '.min.js' : '.js' ;
35
35
36
- // Suppress this error message... there are hundreds of them. Angular team says to ignore it.
37
- // https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
38
- function onwarn ( warning ) {
39
- if ( warning . code === 'THIS_IS_UNDEFINED' ) return ;
40
- console . error ( warning . message ) ;
41
- }
36
+ const onwarn = ( warning ) => {
37
+ // Suppress this error message... https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
38
+ const ignores = [ 'THIS_IS_UNDEFINED' ] ;
39
+ if ( ! ignores . some ( code => code === warning . code ) ) {
40
+ console . error ( warning . message ) ;
41
+ }
42
+ } ;
42
43
43
44
function isExternal ( id ) {
44
45
// @uirouter /core and ui-router-rx should be external
45
46
// All rxjs and @angular /* should be external
46
47
// except for @angular /router/src/router_config_loader
47
48
let externals = [
48
49
/ ^ u i - r o u t e r - r x / ,
50
+ / ^ @ u i r o u t e r \/ r x / ,
49
51
/ ^ @ u i r o u t e r \/ c o r e / ,
50
52
/ ^ r x j s / ,
51
53
/ ^ @ a n g u l a r \/ (? ! r o u t e r \/ s r c \/ r o u t e r _ c o n f i g _ l o a d e r ) / ,
@@ -97,6 +99,7 @@ const CONFIG = {
97
99
'rxjs/operator/concatMap' : 'Rx.Observable.prototype' ,
98
100
99
101
'@uirouter/core' : '@uirouter/core' ,
102
+ '@uirouter/rx' : '@uirouter/rx' ,
100
103
'ui-router-rx' : 'ui-router-rx' ,
101
104
'@angular/core' : 'ng.core' ,
102
105
'@angular/common' : 'ng.common' ,
0 commit comments