Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Sep 7, 2023
1 parent 69da52a commit 6fa1f82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/webpack/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }`;
Expand Down

0 comments on commit 6fa1f82

Please sign in to comment.