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;
}
任何人都可以建議我怎麼能得到過這個問題?