0
我已经用CJS格式编写了我的angularjs应用程序,并使用gulp-systemjs-builder
将它们捆绑到一个文件中。使用gulp-ng-annotate和gulp-systemjs-builder
我想输出到DI的gulp-ng-annotate
,但它失败了,因为systemjs-builder在\* @ngInject *\
和函数声明之间插入了几行。
例子:
包前:
/* @ngInject */
function ReportCtrl($scope) {
var _ctrl = this;
}
捆绑后:
/* @ngInject */
var global = this || self,
GLOBAL = global;
function ReportCtrl($scope) {
var _ctrl = this;
}
任何人都可以建议我怎么能得到过这个问题?