-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
// @ngInject does not work if first line in file #13
Comments
@filipesilva Hello!
Sorry but I haven't workaround for this. Also I have never seen such problem with my code because my files always has imports in top. |
I figured as much. Ah well, |
For those of you having some trouble getting the comment to work, try |
Also I find that babel may drop comments, but you can set option |
Using this loader
If my file contains, for example
It gets compiled to
Causing the annotation to not work. In contrast, with if the comment is not the first line
It compiles well
I tried using the
"ngInject"
syntax and it works. Any suggestion to get the// @ngInject
syntax to work as well in this case?The text was updated successfully, but these errors were encountered: