Skip to content

Commit 3e1849f

Browse files
committed
fix warning breaking on windows path (fix #145)
1 parent eee6bdd commit 3e1849f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/loader.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ module.exports = function (content) {
173173
'if (__vue_script__ &&\n' +
174174
' __vue_script__.__esModule &&\n' +
175175
' Object.keys(__vue_script__).length > 1) {\n' +
176-
' console.warn("[vue-loader] ' + path.relative(process.cwd(), filePath) +
177-
': named exports in *.vue files are ignored.")' +
176+
' console.warn(' + JSON.stringify(
177+
'[vue-loader] ' + path.relative(process.cwd(), filePath) +
178+
': named exports in *.vue files are ignored.'
179+
) + ')' +
178180
'}\n'
179181
}
180182
}

0 commit comments

Comments
 (0)