We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03e066 commit c531eeeCopy full SHA for c531eee
src/utils/normalizeModuleFederationOptions.ts
@@ -108,7 +108,7 @@ export interface ShareItem {
108
109
function removePathFromNpmPackage(packageString: string): string | undefined {
110
// 匹配npm包名的正则表达式,忽略路径部分
111
- const regex = /^(?:@[^/]+\/)?([^@^/][^/]+)/;
+ const regex = /^(?:@[^/]+\/)?(^@[^/]+)/;
112
113
// 使用正则表达式匹配并提取包名
114
const match = packageString.match(regex);
0 commit comments