Bug Tracker

Opened 5 years ago

Closed 5 years ago

#14795 closed bug (worksforme)

sourceMappingURL incorrect when jQuery is installed via Bower

Reported by: dan.smith.nz@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Description

I have a Bower package that lists jquery 1.10.1 as a dependency.

{
    "name": "my-package",
    "version": "0.0.1",
    "main": "dist",
    "dependencies": {
        "jquery": "1.10.1",
        "font-awesome": "4.0.3"
    },
    "devDependencies": {
        "qunit-git": ""
    }
}

When my package is pulled down into my project:

bower install mypackage.git

the following jQuery JavaScripts are downloaded:

  1. jquery.js:
  2. jquery.min.js:
  3. jquery-migrate.js
  4. jquery-migrate.min.js

jquery.min.js contains this comment:

/*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.min.map
*/

As jquery-1.10.1.min.map is not part of the Bower package this results in a 404 error.

Thanks,
Dan

Change History (1)

comment:1 Changed 5 years ago by timmywil

Resolution: worksforme
Status: newclosed

This is not an issue with 1.11.0 or 2.1.0.

Note: See TracTickets for help on using tickets.