@@ -33,19 +33,21 @@ if (MINIFY) plugins.push(visualizer({ sourcemap: true }));
3333
3434let extension = MINIFY ? '.min.js' : '.js' ;
3535
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+ } ;
4243
4344function isExternal ( id ) {
4445 // @uirouter /core and ui-router-rx should be external
4546 // All rxjs and @angular /* should be external
4647 // except for @angular /router/src/router_config_loader
4748 let externals = [
4849 / ^ u i - r o u t e r - r x / ,
50+ / ^ @ u i r o u t e r \/ r x / ,
4951 / ^ @ u i r o u t e r \/ c o r e / ,
5052 / ^ r x j s / ,
5153 / ^ @ 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 = {
9799 'rxjs/operator/concatMap' : 'Rx.Observable.prototype' ,
98100
99101 '@uirouter/core' : '@uirouter/core' ,
102+ '@uirouter/rx' : '@uirouter/rx' ,
100103 'ui-router-rx' : 'ui-router-rx' ,
101104 '@angular/core' : 'ng.core' ,
102105 '@angular/common' : 'ng.common' ,
0 commit comments