Skip to content

Commit 2a4ea5c

Browse files
committed
following feedback and improving code
1 parent 4f33548 commit 2a4ea5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function handleExtendsNodes(tree, options, messages) {
4848
} catch {}
4949
}
5050

51-
var options_expressions = merge(options.expressions, {locals});
52-
var plugins = [...options.plugins, expressions(options_expressions)];
51+
options.expressions.locals = merge(options.expressions.locals, locals);
52+
const plugins = [...options.plugins, expressions(options.expressions)];
5353

5454
const layoutPath = path.resolve(options.root, extendsNode.attrs.src);
5555
const layoutHtml = fs.readFileSync(layoutPath, options.encoding);

0 commit comments

Comments
 (0)