Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(inheritance): gitignore gen'd css and skip rollup warn on 'this'
  • Loading branch information
wardbell committed Jan 15, 2017
commit f12105dc0dc425417714bd1b483efc4c31b954fb
1 change: 1 addition & 0 deletions public/docs/_examples/inheritance/ts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**/*.ngfactory.ts
**/*.ngsummary.json
**/*.metadata.json
**/*.shim.ngstyle.ts
dist
!app/tsconfig.json
!rollup-config.js

This file was deleted.

11 changes: 11 additions & 0 deletions public/docs/_examples/inheritance/ts/rollup-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( warning.message );
},
plugins: [
nodeResolve({jsnext: true, module: true}),
// #docregion commonjs
Expand Down