fix(bundle): makes interfaces.ts non-empty when transpiled.

System.js seems detect an empty file as global and choke on exporting
symbols from angular2/angular2 (possibly a bug in system.js).

As temporary measure we make sure that the file has some (fake) runtime
code left.

Closes: #2343
This commit is contained in:
Rado Kirov 2015-06-04 18:52:11 -07:00
parent cd6175827f
commit 83e99fc72d
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
import {StringMap} from 'angular2/src/facade/collection';
import {global} from 'angular2/src/facade/lang';
// This is here only so that after TS transpilation the file is not empty.
// TODO(rado): find a better way to fix this, or remove if likely culprit
// https://github.com/systemjs/systemjs/issues/487 gets closed.
var __ignore_me = global;
/**
* Defines lifecycle method [onChange] called after all of component's bound
* properties are updated.