File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ module.exports = function (content) {
63
63
64
64
var context = ( this . _compiler && this . _compiler . context ) || this . options . context || process . cwd ( )
65
65
var moduleId = 'data-v-' + genId ( filePath , context , options . hashKey )
66
+ var shortFilePath = path . relative ( context , filePath ) . replace ( / ^ ( \. \. \/ ) + / , '' )
66
67
67
68
var cssLoaderOptions = ''
68
69
if ( ! isProduction && this . sourceMap && options . cssSourceMap !== false ) {
@@ -470,7 +471,7 @@ module.exports = function (content) {
470
471
// development-only code
471
472
if ( ! isProduction ) {
472
473
// add filename in dev
473
- output += 'Component.options.__file = ' + JSON . stringify ( filePath ) + '\n'
474
+ output += 'Component.options.__file = ' + JSON . stringify ( shortFilePath ) + '\n'
474
475
// check named exports
475
476
output +=
476
477
'if (Component.esModule && Object.keys(Component.esModule).some(function (key) {' +
You can’t perform that action at this time.
0 commit comments