Skip to main content

Bug Tracker

Side navigation

#12886 closed feature (fixed)

Opened November 12, 2012 05:21PM UTC

Closed January 10, 2013 03:58PM UTC

Last modified September 05, 2013 02:45PM UTC

Add source map support for build

Reported by: dmethvin Owned by:
Priority: low Milestone: 1.9
Component: build Version: 1.8.2
Keywords: Cc: paul.irish
Blocked by: Blocking:
Description

Create source map during the build process to make debugging the .min versions easire. Need Uglify2 for that.

Attachments (0)
Change History (13)

Changed November 12, 2012 05:22PM UTC by dmethvin comment:1

component: unfiledbuild
milestone: None1.9
priority: undecidedlow
status: newopen

Changed November 12, 2012 06:47PM UTC by paul.irish comment:2

cc: → paul.irish

Changed December 09, 2012 02:39PM UTC by dmethvin comment:3

milestone: 1.92.0

Changed December 28, 2012 02:34AM UTC by dmethvin comment:4

milestone: 2.01.9
resolution: → fixed
status: openclosed

Landed at https://github.com/jquery/jquery/commit/b20f536748300d5aef31ad68cc5adff849a1ee13

Releases at code.jquery.com will have associated maps, and maps will be included in the packages released to other CDNs:

jquery-X.Y.Z.js
jquery-X.Y.Z.min.js
jquery-X.Y.Z.min.map

**NOTE: Renaming the uncompressed jquery-X.Y.Z.js file requires an edit to the jquery-X.Y.Z.min.map file to reference its new name or location.**

Changed January 10, 2013 05:06AM UTC by ryanseddon comment:5

You may be aware but the current rc1 release of 1.9 tries to request code.jquery.com/dist/jquery.min.map in chrome dev tools which 404s.

Manually requesting http://code.jquery.com/jquery-1.9.0rc1.min.map works but the comment being generated by the build is wrong.

Changed January 10, 2013 03:15PM UTC by dmethvin comment:6

resolution: fixed
status: closedreopened

Thanks! Yes, the build process fixed the map file but I missed the comment.

Changed January 10, 2013 03:58PM UTC by dmethvin comment:7

resolution: → fixed
status: reopenedclosed

Lazy bots.

Closed via https://github.com/jquery/jquery/commit/e348b4060848b46a6c4376661c093e0f0a3ef9e7 (1.9) and https://github.com/jquery/jquery/commit/2ff2d1d3dcd99f7bd45fa312ba91bb1248cb6d55 (2.0)

I am seeing inconsistent behavior in Chrome 23 Windows but think it's Chrome and not the map file.

Changed July 25, 2013 01:28PM UTC by ferndriger.business@gmail.com comment:8

Chrome Version 29 tries to load .../jquery.min.map 404 (Not Found)

Changed August 01, 2013 12:27AM UTC by radu19@yahoo.com comment:9

I confirm that Chrome version 29 tries to load /jquery.min.map and fails. Also Chrome Canary...

Changed August 01, 2013 01:49AM UTC by dmethvin comment:10

The last two posters. What version of jQuery are you using? Did you rename the files?

Changed August 07, 2013 01:36PM UTC by Andrew comment:11

We see the same problem - request's for jquery.min.map (which 404) from:

Chrome 28.0.1500.95 (up to date as of today) and

jquery-2.0.3.min.js (downloaded fresh this morning - and not renamed or fiddled with in any way.

OSX Lion 10.7.5 (although hopefully that's irrelevant)

Interestingly, it requests the missing file at the same path as jquery. Ie, jquery is referenced at /somefolder/jquery-2.0.3.min.js and the missing file is requested at: /somefolder/jquery-2.0.3.min.map

This only happens if we have the chrome dev-tools open. (checked using an http debugger).

Changed August 07, 2013 01:59PM UTC by dmethvin comment:12

@Andrew, if you have "use sourcemaps" enabled in dev tools and did not copy the map file to the same location with the same name, then the map file is indeed missing.

Changed September 05, 2013 02:45PM UTC by anonymous comment:13

Replying to [comment:10 dmethvin]:

The last two posters. What version of jQuery are you using? Did you rename the files?

Hi, I have same problem - Chrome 29 - using "jquery-1.9.1.min.js" - no renaming involved... Hope this helps.