Skip to content

Commit c62e846

Browse files
committed
work around webpack eval-source-map bug
1 parent 7d6ca47 commit c62e846

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/parser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ module.exports = function (content) {
7676
result =
7777
commentScript(content.slice(0, start), lang) +
7878
content.slice(start, end) +
79-
commentScript(content.slice(end), lang)
79+
commentScript(content.slice(end), lang) +
80+
// workaround for Webpack eval-source-map bug
81+
// https://github.com/webpack/webpack/pull/1816
82+
'\n/* generated by vue-loader */\n'
8083
} else {
8184
result = content.slice(start, end).trim()
8285
}

0 commit comments

Comments
 (0)