Skip to content

Commit 6bb6a45

Browse files
committed
Interactivity API: Include preact/debug when SCRIPT_DEBUG is enabled
Syncs the changes from Gutenberg: WordPress/gutenberg#60514. Enqueues a different Interactivity API runtime version with preact/debug when SCRIPT_DEBUG is enabled. Props darerodz, jonsurrell, gziolo. Fixes #61171. git-svn-id: https://develop.svn.wordpress.org/trunk@58195 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cef6921 commit 6bb6a45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/webpack/modules.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ module.exports = function (
3232
entry: MODULES.map( ( packageName ) =>
3333
packageName.replace( WORDPRESS_NAMESPACE, '' )
3434
).reduce( ( memo, packageName ) => {
35+
const path =
36+
'development' === mode && 'interactivity' === packageName
37+
? 'interactivity/build-module/debug'
38+
: packageName;
3539
memo[ packageName ] = {
3640
import: normalizeJoin(
3741
baseDir,
38-
`node_modules/@wordpress/${ packageName }`
42+
`node_modules/@wordpress/${ path }`
3943
),
4044
};
4145

0 commit comments

Comments
 (0)