Skip to content

Commit d58bea6

Browse files
committed
fix(compiler): conflict between namespace and components
1 parent 4e2eba0 commit d58bea6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/compiler/component-lazy/write-lazy-entry-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function getBundleId(config: d.Config, entryKey: string, shouldHash: boolean, co
3939

4040
const components = entryKey.split('.');
4141
let bundleId = components[0];
42-
if (components.length > 1) {
43-
bundleId = `${bundleId}_${components.length}`;
42+
if (components.length > 2) {
43+
bundleId = `${bundleId}_${components.length - 1}`;
4444
}
4545
if (modeName !== DEFAULT_STYLE_MODE) {
4646
bundleId += '-' + modeName;

src/compiler/entries/entry-modules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function createEntryModule(cmps: d.ComponentCompilerMeta[]): d.EntryModul
2424
cmps = sortBy(cmps, c => c.tagName);
2525
const entryKey = cmps
2626
.map(c => c.tagName)
27-
.join('.');
27+
.join('.') + '.entry';
2828

2929
return {
3030
cmps,

0 commit comments

Comments
 (0)