From 6fa1f82242cdda7a077fa2b9180545c3a05a11d1 Mon Sep 17 00:00:00 2001 From: Hiroshi Urabe Date: Sun, 11 Jun 2023 20:43:23 +0900 Subject: [PATCH] refactor --- tools/webpack/packages.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/webpack/packages.js b/tools/webpack/packages.js index be95a1c95d7f7..0a01380b0faed 100644 --- a/tools/webpack/packages.js +++ b/tools/webpack/packages.js @@ -144,9 +144,8 @@ module.exports = { path: join( __dirname, '..', '..' ), devtoolModuleFilenameTemplate: ( info ) => { if ( info.resourcePath.includes( '@wordpress' ) ) { - const resourcePath = `${ - info.resourcePath.split( '@wordpress' )[ 1 ] - }`; + const resourcePath = + info.resourcePath.split( '@wordpress' )[ 1 ]; return `../../packages/${ resourcePath }`; } return `webpack://${ info.namespace }/${ info.resourcePath }`;