DataViews package is not bundled with WordPress

  • Unknown's avatar

    In the wp-includes/js/dist folder is a number of @wordpress packages, such as @wordpress/components in the components.js file.

    However the @wordpress/dataviews package is missing, as there is no dataviews.js file. I noticed that there is a bunch of code copied from @wordpress/dataviews into other files such as site-editor.js.

    Is there a plan to start bundling the entire Data Views package in WordPress? For my particular set-up, we are not using core WordPress packages by installing them from npm, so it would be very nice to be able to use the Data Views code 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 the wp-includes/js/dist folder.

    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!

  • Unknown's avatar

    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.

  • Unknown's avatar

    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.