Skip to content

Commit 7fccac4

Browse files
committed
I was wrong about browserify-ngannotate, reverting changes
1 parent 71bc2ef commit 7fccac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/javascript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function init() {
154154
transforms = [
155155
to5ify.configure({ ignoreRegex: /(?!)/ }), // convert any es6 to es5 (ignoreRegex is degenerate)
156156
stringify({ minify: true }), // allow import of html to a string
157-
ngAnnotate // @ngInject for angular injection points
157+
!cliArgs.unminified && ngAnnotate // @ngInject for angular injection points
158158
];
159+
// TODO @bholloway fix sourcemaps in ngAnnotate so that it may be included even when not minifying
159160
}

0 commit comments

Comments
 (0)