From 2936a7e7e2ab646110302050d7857205f6abd027 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 25 Nov 2018 09:22:04 -0500 Subject: [PATCH] remove unnecessary indentation --- src/compile/Component.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 5c1d540994..66b9bc4849 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -502,11 +502,6 @@ export default class Component { this.addSourcemapLocations(script.content); - // const { scope, map, globals } = createScopes(script.content); - // scope.declarations.forEach((node, name) => { - // this.node_for_declaration.set(name, node); - // }); - // TODO unindent this.extract_imports_and_exports(script.content, this.imports, this.module_exports); @@ -519,16 +514,6 @@ export default class Component { this.addSourcemapLocations(script.content); - const { code, source, imports } = this; - - const indent = code.getIndentString(); - code.indent(indent, { - exclude: [ - [0, script.content.start], - [script.content.end, source.length] - ] - }); - let { scope, map, globals } = createScopes(script.content); this.module_scope = scope; this.module_scope_map = map;