Skip to content

Commit b18b4dd

Browse files
fix(minifier): don't reference properties as externals
1 parent 3de1044 commit b18b4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/minifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function minify(
160160
const types: (string | null)[] = []
161161

162162
function getScopedName(name: string): string | null {
163-
if (mangleMap.has(name)) {
163+
if (types.length === 0 && mangleMap.has(name)) {
164164
return mangleMap.get(name)!
165165
}
166166

0 commit comments

Comments
 (0)