[wp-trac] [WordPress Trac] #49360: Scripts: Add polyfill for window.URL
WordPress Trac
noreply at wordpress.org
Wed Feb 12 21:30:31 UTC 2020
#49360: Scripts: Add polyfill for window.URL
---------------------------+-------------------------
Reporter: aduth | Owner: aduth
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.4
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by aduth):
Replying to [comment:10 aduth]:
> But as I look more at the existing [https://github.com/WordPress
/wordpress-develop/blob/master/tools/webpack/packages.js packages Webpack
configuration], I do feel that it would be worth exploring to extract a
separate build configuration specific to vendor dependencies. I think this
would simplify things greatly, allowing bundling one of the source
polyfills, and incorporating minification by leveraging built-in Webpack
functionality. The patch [attachment:"vendor-webpack.diff"] is a partial
implementation of what this could look like. It feels like a larger task
than we probably want to take on for the simple fix of the polyfill, but I
think it would be a worthwhile improvement to vendor-script builds in
general.
I created a separate ticket for this: #49423
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49360#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list