Skip to content

Commit

Permalink
fix(logs): remove commons for appearing in the logs (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Oct 1, 2023
1 parent 0824611 commit 10b36c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/gatsby-plugin-eufemia-theme-handler/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@ exports.onCreateWebpackConfig = (
name(module) {
const fileName = slash(module.context)
if (isInGlob(fileName)) {
const moduleName =
fileName.match(/\/.*theme-([^/]*)$/)?.[1] || 'commons'
const moduleName = fileName.match(/\/.*theme-([^/]*)$/)?.[1]

if (moduleName && !global.themeNames.includes(moduleName)) {
global.themeNames.push(moduleName)
}

return moduleName
return moduleName || 'commons'
}

return 'commons'
Expand Down

0 comments on commit 10b36c1

Please sign in to comment.