Skip to content

Commit

Permalink
Messed up during rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
finnp committed Dec 8, 2018
1 parent d18d9e2 commit 7ca1e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ module.exports = (babel) => {
}
} else if (isCustomElement) {
result.push(t.assignmentExpression('=', id, createCustomBuiltIn(tag, isCustomElement)))
} else {
result.push(t.assignmentExpression('=', id, createElement(tag)))
}
}

Expand Down
2 changes: 2 additions & 0 deletions lib/browserify-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ function processNode (node, args) {
}
} else if (isCustomElement) {
res.push('var ' + elname + ' = document.createElement(' + JSON.stringify(tag) + ', { is: ' + JSON.stringify(isCustomElement) + ' })')
} else {
res.push('var ' + elname + ' = document.createElement(' + JSON.stringify(tag) + ')')
}
}

Expand Down

0 comments on commit 7ca1e36

Please sign in to comment.