DataViews package is not bundled with WordPress
-
In the
wp-includes/js/distfolder is a number of@wordpresspackages, such as@wordpress/componentsin thecomponents.jsfile.However the
@wordpress/dataviewspackage is missing, as there is nodataviews.jsfile. I noticed that there is a bunch of code copied from@wordpress/dataviewsinto other files such assite-editor.js.Is there a plan to start bundling the entire
Data Viewspackage in WordPress? For my particular set-up, we are not using core WordPress packages by installing them fromnpm, so it would be very nice to be able to use theData Viewscode from a bundled copy, like we do for other core packages.We have some webpack wizardry where we make use of the bundled packages and can import them with
@wordpresss/imports, all based on what is in thewp-includes/js/distfolder.Mostly hoping to get some idea of why dataviews specifically is not bundled and if this might ever get bundled with WordPress.
Thanks in advance!
-
Some help would be greatly appreciated! Just knowing why dataviews (and its dependencies) aren’t available in
window.wp.__namespace would be a good first step. -
TBH, this should probably be posted over at the WordPress. ORG forums rather than here on the forums for WordPress.com, the hosting provider. (More on the differences in this guide.)
Maybe start here: https://wordpress.org/support/forum/wp-advanced/
- The topic ‘DataViews package is not bundled with WordPress’ is closed to new replies.