File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function loadPlugins(pluginNames) {
10
10
} ) ;
11
11
}
12
12
13
- function getOptions ( sourceMapEnabled ) {
13
+ function getOptions ( sourceMapEnabled , filename ) {
14
14
var options = utils . parseQuery ( this . query ) ;
15
15
16
16
//"add" should be a default option if not overrided in query
@@ -19,7 +19,6 @@ function getOptions(sourceMapEnabled) {
19
19
}
20
20
21
21
if ( sourceMapEnabled && options . sourcemap === undefined ) {
22
- var filename = utils . getCurrentRequest ( this ) ;
23
22
options . sourcemap = {
24
23
inline : false ,
25
24
inFile : filename ,
@@ -37,9 +36,10 @@ function getOptions(sourceMapEnabled) {
37
36
module . exports = function ( source , sm ) {
38
37
var mergeMap ;
39
38
var sourceMapEnabled = this . sourceMap ;
39
+ var filename = utils . getCurrentRequest ( this ) ;
40
40
this . cacheable && this . cacheable ( ) ;
41
41
42
- var res = ngAnnotate ( source , getOptions . call ( this , sourceMapEnabled ) ) ;
42
+ var res = ngAnnotate ( source , getOptions . call ( this , sourceMapEnabled , filename ) ) ;
43
43
44
44
if ( sourceMapEnabled && sm ) {
45
45
var generator = SourceMapGenerator . fromSourceMap ( new SourceMapConsumer ( sm ) ) ;
You can’t perform that action at this time.
0 commit comments