Skip to content

Commit

Permalink
Fix technicalName in plugins.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nussjustin-hmmh authored and shyim committed Apr 10, 2024
1 parent 4e6638a commit 8d39b76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/esbuild/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ func ToKebabCase(str string) string {
return "-" + strings.ToLower(match)
})

// See https://github.com/shopware/shopware/blob/240386d/src/Core/Framework/Plugin/BundleConfigGenerator.php#L73
converted = strings.ReplaceAll(converted, "_", "-")

return strings.TrimPrefix(converted, "-")
}

0 comments on commit 8d39b76

Please sign in to comment.