Skip to content

Commit 21d776f

Browse files
Broccohansl
authored andcommitted
fix(@angular/cli): add typing for module.id for SystemJS usage
1 parent f3644a9 commit 21d776f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* SystemJS module definition */
2+
declare var module: {
3+
id: string;
4+
};

Diff for: tests/e2e/tests/build/module-id.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ng } from '../../utils/process';
2+
import { replaceInFile } from "../../utils/fs";
3+
4+
5+
export default function() {
6+
return Promise.resolve()
7+
.then(() => replaceInFile('src/app/app.component.ts',
8+
'@Component({',
9+
'@Component({ moduleId: module.id,'))
10+
.then(() => ng('build'));
11+
}

0 commit comments

Comments
 (0)