Skip to content

Commit 445ba65

Browse files
committed
Use named args
1 parent 32a0e6b commit 445ba65

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/transform.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ function transform(source, template, options = {}) {
6969
classNameBindings,
7070
attributeBindings,
7171
} = result;
72-
let newTemplate = transformTemplate(
72+
let newTemplate = transformTemplate({
7373
template,
7474
tagName,
7575
elementId,
7676
classNames,
7777
classNameBindings,
7878
attributeBindings,
79-
options
80-
);
79+
options,
80+
});
8181

8282
return { source: newSource, template: newTemplate, tagName };
8383
}

lib/transform/template.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const b = templateRecast.builders;
66

77
const PLACEHOLDER = '@@@PLACEHOLDER@@@';
88

9-
module.exports = function transformTemplate(
9+
module.exports = function transformTemplate({
1010
template,
1111
tagName,
1212
elementId,
1313
classNames,
1414
classNameBindings,
1515
attributeBindings,
16-
options
17-
) {
16+
options,
17+
}) {
1818
// wrap existing template with root element
1919
let classNodes = [];
2020
if (options.hasComponentCSS) {

0 commit comments

Comments
 (0)