#46218 closed defect (bug) (fixed)
404 error in source mapping in jquery.form.min.js
| Reported by: | valicesupport | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Build/Test Tools | Version: | 5.1 |
| Severity: | normal | Keywords: | has-patch has-unit-tests commit dev-feedback |
| Cc: | Focuses: |
Description
Source map error: request failed with status 404
In the latest version of WordPress, the jquery.form.min.js file is referencing a sourceMappingURL at the bottom of the file.
Attachments (2)
Change History (8)
#1
@
8 years ago
- Component General → Build/Test Tools
- Keywords needs-patch added
- Milestone Awaiting Review → 5.1
- Version 5.0.3 → trunk
#2
@
8 years ago
- Keywords has-patch has-unit-tests commit dev-feedback added; needs-patch removed
In 46218.diff:
- Don't copy
jquery.form.min.jsfromnode_modules, uglify it fromjquery.form.js. - Add a unit test to ensure all JS files in the
builddirectory don't contain asourceMappingURLdirective. - Remove the ad-hoc unit tests that check
backbone.min.jsandjquery.jsfor asourceMappingURL.
The unit test allows sourceMappingURL=data:... URIs, as these won't cause an extra HTTP request.
#3
@
8 years ago
In 46218.2.diff:
- adds
uglify:jqueryformtouglify:allandprecommit:jstasks - otherwise identical to original patch
I've tested both the grunt watch and grunt build commands to ensure the file is included. It is.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thank you for the bug report, @valicesupport!
This is caused by the build process (
grunt copy:npm-packages) copying the minified files from the packages that it's importing, rather than using theuglifypart of the build process.