Closed orta closed 4 years ago
Improvement Idea:
// @emitDecoratorMetadata // @experimentalDecorators // @showEmit // @filename: service.ts export class Service {} // @filename: component.ts import type { Service } from "./service"
Creates these virtual files:
[ [ '', [ '// @filename: ' ] ], [ 'service.ts', [ '// @filename: service.ts', 'export class Service {}', '', '' ] ], [ 'component.ts', [ '// @filename: component.ts', 'import type { Service } from "./service"', '', 'declare var decorator: any', '', '@decorator', 'class MyComponent {', ' constructor(public Service: Service) {}', '', ' @decorator', ' method(x: this) {}', '}', '' ] ] ]
Why:
The file generation from a single file is too simple
This should be fixed by #729
It is
Improvement Idea:
Creates these virtual files:
Why:
The file generation from a single file is too simple