[wp-trac] [WordPress Trac] #49358: Update WordPress packages
WordPress Trac
noreply at wordpress.org
Tue Feb 11 21:51:49 UTC 2020
#49358: Update WordPress packages
------------------------------+-------------------------------
Reporter: jorgefilipecosta | Owner: jorgefilipecosta
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+-------------------------------
Comment (by aduth):
>Added these new packages:
>@wordpress/warning
I believe this package needs to be included in this set:
https://github.com/WordPress/wordpress-
develop/blob/f97a60c9b/tools/webpack/packages.js#L215-L223
Matching the equivalent Gutenberg configuration:
https://github.com/WordPress/gutenberg/blob/59d7463/webpack.config.js#L97-L108
This makes it so that the default export is available at `wp.warning`.
Otherwise (and as currently implemented), it can only be called via
`wp.warning.default( '...' );`, which is not desirable. I've not
confirmed, but it might also cause errors for code which depends on this,
if that code defines an external of `@wordpress/warning` to `wp.warning`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49358#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list