We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4434979 commit b60d21cCopy full SHA for b60d21c
.changeset/young-bats-taste.md
@@ -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
@@ -20,7 +20,7 @@ export const builderPluginAlias = ({
20
const mainEntrypointsAlias: Record<string, string> = {};
21
entrypoints.forEach(entrypoint => {
22
entrypointsAlias[
23
- `@${metaName}/runtime/registry/${entrypoint.entryName}`
+ `@${metaName}/runtime/registry/${entrypoint.entryName}$`
24
] = path.join(
25
internalDirectory,
26
entrypoint.entryName,
0 commit comments