Skip to content

Commit

Permalink
Merge pull request #86 from Konnng/master
Browse files Browse the repository at this point in the history
fix: merging issue with global local prop
  • Loading branch information
Scrum authored Feb 19, 2024
2 parents 7c10bbe + c704db2 commit 02a2a36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ module.exports = (options = {}) => {
const localsJson = JSON.parse(localsRaw);
posthtmlExpressionsOptions = {
...posthtmlExpressionsOptions,
locals: posthtmlExpressionsOptions.locals ?
Object.assign(posthtmlExpressionsOptions.locals, localsJson) :
localsJson
locals: posthtmlExpressionsOptions.locals ? {...posthtmlExpressionsOptions.locals, ...localsJson} : localsJson
};
} catch {}

Expand Down

0 comments on commit 02a2a36

Please sign in to comment.