We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae9686 commit b44c13bCopy full SHA for b44c13b
modules/angular2/src/core/compiler/util.ts
@@ -46,7 +46,7 @@ function escapeString(input: string, re: RegExp): string {
46
}
47
48
export function codeGenExportVariable(name: string, isConst: boolean = false): string {
49
- var declaration = isConst ? `const ${name}` : `var ${name}`;
+ var declaration = IS_DART && isConst ? `const ${name}` : `var ${name}`;
50
return IS_DART ? `${declaration} = ` : `${declaration} = exports['${name}'] = `;
51
52
0 commit comments