Skip to content

Commit

Permalink
lex before parse and use correct addClass reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed May 5, 2019
1 parent d09376d commit 4f643dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/moon-mvl/dist/moon-mvl.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function addClass(element, name) {
}

for (var i = 0; i < children.length; i++) {
module.exports.addClass(children[i], name);
addClass(children[i], name);
}
}
function scopeCSS(scope, css) {
Expand All @@ -109,7 +109,7 @@ module.exports = function (name, input, hot) {
inputCSS = style;
return prefix + suffix;
});
var tree = Moon.parse(input);
var tree = Moon.parse(Moon.lex(input));
var outputJS;
var outputCSS = null;

Expand Down
2 changes: 1 addition & 1 deletion packages/moon-mvl/dist/moon-mvl.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/moon-mvl/src/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function addClass(element, name) {
}

for (let i = 0; i < children.length; i++) {
module.exports.addClass(children[i], name);
addClass(children[i], name);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/moon-mvl/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = (name, input, hot) => {
return prefix + suffix;
});

const tree = Moon.parse(input);
const tree = Moon.parse(Moon.lex(input));
let outputJS;
let outputCSS = null;

Expand Down

0 comments on commit 4f643dc

Please sign in to comment.