Skip to content

Commit f46914a

Browse files
committed
fix: merging issue with global local prop
1 parent 69789e2 commit f46914a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = (options = {}) => {
3434
const localsJson = JSON.parse(localsRaw);
3535
posthtmlExpressionsOptions = {
3636
...posthtmlExpressionsOptions,
37-
locals: posthtmlExpressionsOptions.locals ? Object.assign(posthtmlExpressionsOptions.locals, localsJson) : localsJson
37+
locals: posthtmlExpressionsOptions.locals ? {...posthtmlExpressionsOptions.locals, ...localsJson} : localsJson
3838
};
3939
} catch {}
4040

0 commit comments

Comments
 (0)