Skip to content

Commit c7c7ff7

Browse files
Fix merge locals with global
1 parent 36db959 commit c7c7ff7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-component",
3-
"version": "1.0.0-beta.7",
3+
"version": "1.0.0-beta.8",
44
"description": "PostHTML Components Blade-like with slots, attributes as props and custom tag",
55
"license": "MIT",
66
"repository": "thewebartisan7/posthtml-components",

src/locals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = (currentNode, nextNode, filledSlots, options) => {
6262
}
6363

6464
// Merge with global
65-
attributes = mergeWith(options.expressions.locals, attributes, options.mergeCustomizer);
65+
attributes = mergeWith({}, options.expressions.locals, attributes, options.mergeCustomizer);
6666

6767
// There is no way to know here what are locals
6868
// and what attributes passed to component

0 commit comments

Comments
 (0)