This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
public/docs/_examples/cb-aot-compiler/ts Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
** /* .ngfactory.ts
2
2
** /* .ngsummary.json
3
+ ** /* .shim.ngstyle.ts
3
4
** /* .metadata.json
4
5
dist
5
6
! app /tsconfig.json
Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ export default {
10
10
dest : 'dist/build.js' , // output a single application bundle
11
11
sourceMap : false ,
12
12
format : 'iife' ,
13
+ onwarn : function ( warning ) {
14
+ // skip certain warnings
15
+
16
+ // Should intercept ... but doesn't in some rollup versions
17
+ if ( warning . code === 'THIS_IS_UNDEFINED' ) { return ; }
18
+ // Intercepts in some rollup versions
19
+ if ( warning . indexOf ( "The 'this' keyword is equivalent to 'undefined'" ) > - 1 ) { return ; }
20
+
21
+ // console.warn everything else
22
+ console . warn ? console . warn ( warning . message ) : console . log ( warning . message ) ;
23
+ } ,
13
24
plugins : [
14
25
nodeResolve ( { jsnext : true , module : true } ) ,
15
26
// #docregion commonjs
@@ -22,4 +33,4 @@ export default {
22
33
// #enddocregion uglify
23
34
]
24
35
}
25
- // #enddocregion config
36
+ // #enddocregion config
You can’t perform that action at this time.
0 commit comments