|
|
@ -165,11 +165,10 @@ export default class Component {
|
|
|
|
|
|
|
|
|
|
|
|
this.file =
|
|
|
|
this.file =
|
|
|
|
compile_options.filename &&
|
|
|
|
compile_options.filename &&
|
|
|
|
// eslint-disable-next-line no-useless-escape
|
|
|
|
|
|
|
|
(typeof process !== 'undefined'
|
|
|
|
(typeof process !== 'undefined'
|
|
|
|
? compile_options.filename
|
|
|
|
? compile_options.filename
|
|
|
|
.replace(process.cwd(), '')
|
|
|
|
.replace(process.cwd(), '')
|
|
|
|
.replace(/^[\/\\]/, '')
|
|
|
|
.replace(/^[/\\]/, '')
|
|
|
|
: compile_options.filename);
|
|
|
|
: compile_options.filename);
|
|
|
|
this.locate = getLocator(this.source);
|
|
|
|
this.locate = getLocator(this.source);
|
|
|
|
|
|
|
|
|
|
|
|