Skip to content

Commit 62bbb79

Browse files
committed
Block editor: make block-editor a script/module dual package.
Fit text is a block support under `block-editor`, that needs assets on the front-end, so block editor now exposes `wpScriptModuleExports` and needs to be included in `SCRIPT_AND_MODULE_DUAL_PACKAGES`, in order for its script modules to be registered and loaded. See #10373. Props jorgefilipecosta. Fixes #64124. git-svn-id: https://develop.svn.wordpress.org/trunk@61027 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5d76392 commit 62bbb79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '441cab46d043b0a45f6f', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '4b216ecdeb745ab1b420', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'interactivity-router/full-page.min.js' => array('dependencies' => array(array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'ac76172d5956969e2227', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5fa6ee20ae87460b9868', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '26816800d42394b0a5f5', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3d4d582d5a6b3cf1185b', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '208bf143e4074549fa89', 'type' => 'module'));
1+
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '441cab46d043b0a45f6f', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '4b216ecdeb745ab1b420', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'interactivity-router/full-page.min.js' => array('dependencies' => array(array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'ac76172d5956969e2227', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5fa6ee20ae87460b9868', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '26816800d42394b0a5f5', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3d4d582d5a6b3cf1185b', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '208bf143e4074549fa89', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array(), 'version' => '6e035d66824ec76d9de1', 'type' => 'module'));

tools/webpack/shared.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const MODULES = [
108108
const SCRIPT_AND_MODULE_DUAL_PACKAGES = [
109109
'@wordpress/a11y',
110110
'@wordpress/block-library',
111+
'@wordpress/block-editor',
111112
];
112113
const WORDPRESS_NAMESPACE = '@wordpress/';
113114

0 commit comments

Comments
 (0)