We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c10bbe + c704db2 commit 02a2a36Copy full SHA for 02a2a36
lib/index.js
@@ -46,9 +46,7 @@ module.exports = (options = {}) => {
46
const localsJson = JSON.parse(localsRaw);
47
posthtmlExpressionsOptions = {
48
...posthtmlExpressionsOptions,
49
- locals: posthtmlExpressionsOptions.locals ?
50
- Object.assign(posthtmlExpressionsOptions.locals, localsJson) :
51
- localsJson
+ locals: posthtmlExpressionsOptions.locals ? {...posthtmlExpressionsOptions.locals, ...localsJson} : localsJson
52
};
53
} catch {}
54
0 commit comments