[wp-trac] [WordPress Trac] #46218: 404 error in source mapping in jquery.form.min.js

WordPress Trac noreply at wordpress.org
Mon Feb 11 23:38:12 UTC 2019


#46218: 404 error in source mapping in jquery.form.min.js
-------------------------------------------------+-------------------------
 Reporter:  valicesupport                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.1
Component:  Build/Test Tools                     |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  dev-feedback                                   |
-------------------------------------------------+-------------------------
Changes (by pento):

 * keywords:  needs-patch => has-patch has-unit-tests commit dev-feedback


Comment:

 In [attachment:"46218.diff"]:

 - Don't copy `jquery.form.min.js` from `node_modules`, uglify it from
 `jquery.form.js`.
 - Add a unit test to ensure all JS files in the `build` directory don't
 contain a `sourceMappingURL` directive.
 - Remove the ad-hoc unit tests that check `backbone.min.js` and
 `jquery.js` for a `sourceMappingURL`.

 The unit test allows `sourceMappingURL=data:...` URIs, as these won't
 cause an extra HTTP request.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46218#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list