grunt-ng-annotate icon indicating copy to clipboard operation
grunt-ng-annotate copied to clipboard

Support source maps with many-to-one mappings

Open op1ekun opened this issue 10 years ago • 8 comments

How am I suppose to use sourceMap?

I have a following configuration in place:

ngAnnotate: {
            options: {
                add: true,
                singleQuotes: true,
                sourceMap: true // it neither works for the string parameter 'dist/bundle.js.map'
            },
            dist: {
                files: {
                    'dist/bundle.js': [ 'app/modules/*/*.js', 'app/*.js']
                }
            }
        },

The error doesn't make any sense. I'm crating a SINGLE bundle file and I want its source map. Please help :)

op1ekun avatar Feb 13 '15 12:02 op1ekun

I haven't implemented it yet. Supporting single files is simple as I just pass proper arguments to ng-annotate and that's it. Supporting multiple files requires managing combining source maps; I haven't done such a thing so far and it's not a quick thing to do.

PR welcome. If no one submits one, I'll probably get to it after some time but it might not happen quickly.

mgol avatar Feb 19 '15 12:02 mgol

Fair enough :)

:+1:

op1ekun avatar Feb 20 '15 18:02 op1ekun

waiting for...

urom avatar Mar 12 '15 17:03 urom

would be nice to have

brianarpie avatar Apr 21 '15 02:04 brianarpie

need it so much urgent :-)

MotherCake avatar Aug 04 '15 14:08 MotherCake

+1!

rschoenbichler avatar Oct 15 '15 05:10 rschoenbichler

I have absolutely no time to work on PR right now :( Sorry for the false hopes...

op1ekun avatar Oct 15 '15 09:10 op1ekun

Note that ng-annotate is now in a process of being deprecated in favor of the babel-plugin-angularjs-annotate package so it might be better to just move to it instead of spending time on fixing this issue.

mgol avatar Nov 14 '16 12:11 mgol