X Tutup
Skip to content

Commit 83e99fc

Browse files
committed
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
1 parent cd61758 commit 83e99fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/angular2/src/core/compiler/interfaces.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import {StringMap} from 'angular2/src/facade/collection';
2+
import {global} from 'angular2/src/facade/lang';
23

4+
// This is here only so that after TS transpilation the file is not empty.
5+
// TODO(rado): find a better way to fix this, or remove if likely culprit
6+
// https://github.com/systemjs/systemjs/issues/487 gets closed.
7+
var __ignore_me = global;
38
/**
49
* Defines lifecycle method [onChange] called after all of component's bound
510
* properties are updated.

0 commit comments

Comments
 (0)
X Tutup