Skip to content

Commit b60d21c

Browse files
authored
fix: add the "$" character to avoid alias override in nested entries (#7093)
1 parent 4434979 commit b60d21c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/young-bats-taste.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@modern-js/runtime': patch
3+
---
4+
5+
fix: add the "$" character to avoid alias override in nested entries
6+
fix: 添加 $ 字符避免嵌套入口时 alias 覆盖

packages/runtime/plugin-runtime/src/cli/alias.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const builderPluginAlias = ({
2020
const mainEntrypointsAlias: Record<string, string> = {};
2121
entrypoints.forEach(entrypoint => {
2222
entrypointsAlias[
23-
`@${metaName}/runtime/registry/${entrypoint.entryName}`
23+
`@${metaName}/runtime/registry/${entrypoint.entryName}$`
2424
] = path.join(
2525
internalDirectory,
2626
entrypoint.entryName,

0 commit comments

Comments
 (0)