Make WordPress Core

Opened 5 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#64137 closed defect (bug) (fixed)

Interactivity API Router's full-page script module should not be bundled in WordPress

Reported by: samueljseay's profile samueljseay Owned by: samueljseay's profile samueljseay
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Interactivity API Keywords: has-patch
Focuses: Cc:

Description

A recent update to the version of interactivity-api-router installed by WordPress causes a build to include the full-page.js script module of that package, but that particular module is experimental.

There is not currently a way to build a script module via wpScriptModuleExports while also marking it experimental. As an interim solution that we don't expect to need very often, we intend to hard-code an exclusion in the WordPress build to ensure this file is not bundled until its no longer experimental.

Change History (3)

This ticket was mentioned in PR #10396 on WordPress/wordpress-develop by @samueljseay.


5 weeks ago
#1

  • Keywords has-patch added

The full-page wpScriptModuleExport defined in interactivity-router should not be bundled in Wordpress core yet as it is experimental. There is no mechanism in wpScriptModuleExports right now that supports building a script module but not including it in core. Since this is likely to be a rare instance we have opted to hard-code an exclusion in core's build until this module is no longer experimental.

Trac ticket: https://core.trac.wordpress.org/ticket/64137

#2 @luisherranz
4 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 61072:

Interactivity API: Router's experimental full-page script module should not be bundled in WordPress.

The "./full-page" entry defined in the @wordpress/interactivity-router's wpScriptModuleExport field should not be bundled in WordPress Core yet as it is experimental. There is no mechanism in wpScriptModuleExports right now to support building a script module but not including it in WordPress Core. Since this is likely to be a rare instance we have opted to hard-code an exclusion in WordPress Core's build until this module is no longer experimental.

Props samueljseay, westonruter, youknowriad.
Fixes #64137.

#3 @luisherranz
4 weeks ago

  • Component changed from General to Interactivity API
  • Milestone changed from Awaiting Review to 6.9
Note: See TracTickets for help on using tickets.