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;