Skip to content

Commit

Permalink
fix(*): export noop function from rxjs-imports in order to force ngc …
Browse files Browse the repository at this point in the history
…to generate a proper metadata.json file. Closes #175 (#177)
  • Loading branch information
Georgii Rychko authored Nov 25, 2017
1 parent 0592e28 commit c0aab34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update"
},
"devDependencies": {
"@angular/cli": "1.5.2",
"@angular/cli": "1.5.4",
"@angular/common": "5.0.2",
"@angular/compiler": "5.0.2",
"@angular/compiler-cli": "5.0.2",
Expand Down
3 changes: 3 additions & 0 deletions src/rxjs-imports.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import 'rxjs/add/operator/filter';
import 'rxjs/add/observable/of';

// This forces angular compiler to generate a "rxjs-imports.metadata.json"
// with a valid metadata instead of "[null]"
export const noop = () => {};

0 comments on commit c0aab34

Please sign in to comment.