Skip to content

Commit 06a8653

Browse files
committed
feat: take priority locals at each node over locals at global options
1 parent eea8959 commit 06a8653

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(localsJson, posthtmlExpressionsOptions.locals) : localsJson
37+
locals: posthtmlExpressionsOptions.locals ? Object.assign(posthtmlExpressionsOptions.locals, localsJson) : localsJson
3838
};
3939
} catch {}
4040

0 commit comments

Comments
 (0)