Skip to content

Commit c0aab34

Browse files
author
Georgii Rychko
authored
fix(*): export noop function from rxjs-imports in order to force ngc to generate a proper metadata.json file. Closes #175 (#177)
1 parent 0592e28 commit c0aab34

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update"
5050
},
5151
"devDependencies": {
52-
"@angular/cli": "1.5.2",
52+
"@angular/cli": "1.5.4",
5353
"@angular/common": "5.0.2",
5454
"@angular/compiler": "5.0.2",
5555
"@angular/compiler-cli": "5.0.2",

src/rxjs-imports.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import 'rxjs/add/operator/filter';
22
import 'rxjs/add/observable/of';
33

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

0 commit comments

Comments
 (0)