Skip to content

Commit 7045395

Browse files
committed
fix(index): don't keep _literalReplace in the output
1 parent 426a1ae commit 7045395

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ export function assign(current, addition, property: string = 'config', style: 'a
1313
return addition.slice()
1414
}
1515
else if (typeof addition === 'object') {
16-
if (typeof current !== 'object' || addition['_literalReplace'])
16+
if (typeof current !== 'object' || addition['_literalReplace']) {
17+
if (addition['_literalReplace'])
18+
delete addition['_literalReplace']
1719
current = {}
20+
}
1821
else
1922
current = Object.assign({}, current)
2023

0 commit comments

Comments
 (0)