Vue: Please create source map for vue.min.js

Created on 18 May 2016  Â·  5Comments  Â·  Source: vuejs/vue

Can a source map please be generated when releasing versions of vue.min.js? I am using it in production and when I get an error, I get a reference that is very difficult to debug (referencing a method on line 6 which has thousands of characters on it).

Maybe this has already been asked or I am just missing finding the file?

Thanks

Most helpful comment

Will be included for future releases.

All 5 comments

Relevant Rollup.js Documentation: Sourcemaps

Do you have any reason why you have to debug the issue in production? You should be using the non-minified version during development.

I track bugs that occur in production, which I use the minified version of vue.js. It seems to be almost a universal practice with other libraries and other frameworks, such as jQuery and Angular, to include a source map with the minified production version of the file . It is also so trivial to accomplish in the build stage. Thanks

Will be included for future releases.

It is over 3 years later.. I still don't see a map file?

It is handy for Rollbar and other error monitoring services. The minified JS file should use the sourceMappingURL comment tag at the end:

Example from bootstrap.min.js:

//# sourceMappingURL=bootstrap.min.js.map
Was this page helpful?
0 / 5 - 0 ratings

Related issues

lmnsg picture lmnsg  Â·  3Comments

robertleeplummerjr picture robertleeplummerjr  Â·  3Comments

bdedardel picture bdedardel  Â·  3Comments

6pm picture 6pm  Â·  3Comments

julianxhokaxhiu picture julianxhokaxhiu  Â·  3Comments