Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit f12105d

Browse files
committed
chore(inheritance): gitignore gen'd css and skip rollup warn on 'this'
1 parent b4dc858 commit f12105d

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
**/*.ngfactory.ts
22
**/*.ngsummary.json
33
**/*.metadata.json
4+
**/*.shim.ngstyle.ts
45
dist
56
!app/tsconfig.json
67
!rollup-config.js

public/docs/_examples/inheritance/ts/aot/app/base.component.css.shim.ngstyle.ts

-8
This file was deleted.

public/docs/_examples/inheritance/ts/rollup-config.js

+11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ export default {
1010
dest: 'dist/build.js', // output a single application bundle
1111
sourceMap: false,
1212
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( warning.message );
23+
},
1324
plugins: [
1425
nodeResolve({jsnext: true, module: true}),
1526
// #docregion commonjs

0 commit comments

Comments
 (0)