-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments are parsed #79
Comments
Any news about that ? I need this issue to be fixed for an Angular packaging plugin. |
I mean, guys, the news is that it's all regex ... if someone has an idea how, feel free! The code in question, that breaks the builds, is for example: https://github.com/angular/angular/blob/b10029c18b11dc40577e1dfd86d2edfbbee16bad/packages/animations/src/animation_metadata.ts#L257-L273 |
Yeah it seems not so difficult, but as you may see if you search deep in this repository, there is no activity on this repository anymore, PR are not merged since January ! |
I'm back online, please make a PR if you have a solution |
Hi @ludohenin, |
A more robust solution is to parse the TypeScript AST (instead of regex) to extract See also TheLarkInn/angular2-template-loader#54 ans TheLarkInn/angular2-template-loader#70 |
Hello,
I have a typescript file with comment, which gives example how it should be used. In the example I have provided @component template definition. When running the template definition it tells me it can not find the file that was mentioned in templateUrl. As this is just an example, it is normal that this file does not exist. I think the plug-in should not attempt to parse code inside comments.
Example:
/**
*/
export class BaseDialog extends ClosableDialog implements OnInit, OnDestroy {
...
}
The text was updated successfully, but these errors were encountered: