Skip to content

Commit 417b438

Browse files
committed
Resolved issue with CoffeeScript (and presumably other CS-like languages) not transpiling in a Vue component.
1 parent 0af739b commit 417b438

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/parser.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,7 @@ module.exports = function (content) {
7171
var start = node.childNodes[0].__location.start
7272
var end = node.childNodes[node.childNodes.length - 1].__location.end
7373

74-
var result
75-
if (type === 'script') {
76-
result =
77-
// commentScript(content.slice(0, start)) +
78-
content.slice(start, end)// +
79-
// commentScript(content.slice(end))
80-
} else {
81-
result = content.slice(start, end).trim()
82-
}
74+
var result = content.slice(start, end).trim()
8375

8476
output[type].push({
8577
lang: lang,

0 commit comments

Comments
 (0)