pull/1839/head
Rich Harris 7 years ago
parent 2f867beb2c
commit af99b4d099

@ -110,8 +110,9 @@ export default class Component {
options: CompileOptions, options: CompileOptions,
stats: Stats stats: Stats
) { ) {
this.stats = stats; this.name = this.getUniqueName(name);
this.stats = stats;
this.ast = ast; this.ast = ast;
this.source = source; this.source = source;
this.options = options; this.options = options;
@ -149,7 +150,6 @@ export default class Component {
this.walk_module_js(); this.walk_module_js();
this.walk_instance_js(); this.walk_instance_js();
this.name = this.getUniqueName(name);
this.fragment = new Fragment(this, ast.html); this.fragment = new Fragment(this, ast.html);
if (!options.customElement) this.stylesheet.reify(); if (!options.customElement) this.stylesheet.reify();

Loading…
Cancel
Save