Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jun 11, 2023
1 parent ddc362c commit ff2df57
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 @@ -142,9 +142,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 ff2df57

Please sign in to comment.