Skip to content

Commit

Permalink
fix: show full name for external mod at graph
Browse files Browse the repository at this point in the history
  • Loading branch information
nieyuyao committed Jun 11, 2022
1 parent 1660b59 commit ca9983a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/client/composables/module-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type ModuleGraphConfig = GraphConfig<ModuleType, ModuleNode, ModuleLink>
function defineExternalModuleNode(module: string): ModuleNode {
let label = module
if (label.includes('/node_modules/'))
label = label.split(/\/node_modules\//g).pop()!.split(/\//g).shift()!
label = label.split(/\/node_modules\//g).pop()!
else
label = label.split(/\//g).pop()!

Expand Down

0 comments on commit ca9983a

Please sign in to comment.