diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 6f381db115..fa8665ffde 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -165,11 +165,10 @@ export default class Component { this.file = compile_options.filename && - // eslint-disable-next-line no-useless-escape (typeof process !== 'undefined' ? compile_options.filename - .replace(process.cwd(), '') - .replace(/^[\/\\]/, '') + .replace(process.cwd(), '') + .replace(/^[/\\]/, '') : compile_options.filename); this.locate = getLocator(this.source); diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 75b9c353a7..0889ce7d03 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -199,7 +199,7 @@ export default class InlineComponentWrapper extends Wrapper { const value = attr.expression.render(block); initial_props.push(value); - let value_object = value + let value_object = value; if (attr.expression.node.type !== 'ObjectExpression') { value_object = `@get_spread_object(${value})`; }