Closed patrickhousley closed 9 years ago
@patrickhousley according to referenced issue it should work, but it doesn't if you're right. I'm going to investigate that, thanks.
Below is the code that is returned from the babel loader and sent into the annotate loader. It is the exact same when it comes out of the annotate loader.
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _angular = require('angular');
var _angular2 = _interopRequireDefault(_angular);
var _jquery = require('jquery');
var _jquery2 = _interopRequireDefault(_jquery);
var _module2 = require('../module');
var _module3 = _interopRequireDefault(_module2);
// Import any modules external to the menu component
require('../common/responsive.service');
require('../common/cookie.service');
_module3['default'].service('menuConfigService', MenuConfigService);
function MenuConfigService(responsiveUtils, cookieService) {
.....
}
I don't think this is an issue with ng-annotate-loader. I updated the ng-annotate dependency for the loader locally and still had the issue.
Okay, now it is enough to update ng-annotate go get that feature
Have fixed that in 0.0.7 verision, npm package is updated. Please check.
This seems to still be an issue with version 0.0.10
I do not seem to be able to use a named function without including the annotation above it.
The above code will result in an error stating MenuConfigService is not using explicit annotation. This does appear to be supported by ng-annotate https://github.com/olov/ng-annotate/issues/57. Is this an issue with the loader?