diff --git a/public/docs/_examples/cb-aot-compiler/ts/.gitignore b/public/docs/_examples/cb-aot-compiler/ts/.gitignore index 77e1d7b23c..91da4c79a2 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/.gitignore +++ b/public/docs/_examples/cb-aot-compiler/ts/.gitignore @@ -1,5 +1,6 @@ **/*.ngfactory.ts **/*.ngsummary.json +**/*.shim.ngstyle.ts **/*.metadata.json dist !app/tsconfig.json diff --git a/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js b/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js index 5b90e5b0ea..7a42e89025 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js +++ b/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js @@ -10,6 +10,17 @@ export default { dest: 'dist/build.js', // output a single application bundle sourceMap: false, format: 'iife', + onwarn: function(warning) { + // skip certain warnings + + // Should intercept ... but doesn't in some rollup versions + if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; } + // Intercepts in some rollup versions + if ( warning.indexOf("The 'this' keyword is equivalent to 'undefined'") > -1 ) { return; } + + // console.warn everything else + console.warn ? console.warn( warning.message ) : console.log( warning.message ) ; + }, plugins: [ nodeResolve({jsnext: true, module: true}), // #docregion commonjs @@ -22,4 +33,4 @@ export default { // #enddocregion uglify ] } -// #enddocregion config \ No newline at end of file +// #enddocregion config