barbatus / typescript-compiler

TypeScript Compilers for Meteor
14 stars 9 forks source link

Barrels do not work any more #19

Closed hongbo-miao closed 8 years ago

hongbo-miao commented 8 years ago

After updating angular2-compilers from 0.5.7 to 0.6.0 The Barrels do not work any more.

Say I have a folder.

foo
-- aa.component.ts
-- bb.component.ts
-- index.ts

index.ts

export * from './aa.component';
export * from './bb.component';

Using Barrels, I can do import { AaComponent, BbComponent } from './foo';, however now it does not work any more.


Now I have to import like this:

import { AaComponent } from './foo/aa.component';
import { BbComponent } from './foo/bb.component';
hongbo-miao commented 8 years ago

I thought it is related with typescript-compiler, but now I only can confirm it is related with angular2-compilers. So moved to https://github.com/Urigo/angular2-meteor/issues/332

barbatus commented 8 years ago

No it's not related to the angular2-meteor. There is a similar issue, see https://github.com/barbatus/typescript-compiler/issues/17

hongbo-miao commented 8 years ago

Yeah, you are right, I missed that issue.