pull/1864/head
Rich Harris 7 years ago
parent f93a647913
commit 8f0a00dd36

2
.gitignore vendored

@ -18,4 +18,4 @@ node_modules
/store.umd.js
/yarn-error.log
_actual*.*
_
_*

@ -124,8 +124,13 @@ export default class Component {
throw new Error(`No tag name specified`); // TODO better error
}
this.fragment = new Fragment(this, ast.html);
if (!this.customElement) this.stylesheet.reify();
this.stylesheet.warnOnUnusedSelectors(options.onwarn);
if (!this.ast.js) {
this.declarations = Array.from(this.expectedProperties);
this.declarations.push(...this.expectedProperties);
addToSet(this.writable_declarations, this.expectedProperties);
this.exports = this.declarations.map(name => ({
@ -133,12 +138,6 @@ export default class Component {
as: name
}));
}
this.fragment = new Fragment(this, ast.html);
// this.walkTemplate();
if (!this.customElement) this.stylesheet.reify();
this.stylesheet.warnOnUnusedSelectors(options.onwarn);
}
addSourcemapLocations(node: Node) {

Loading…
Cancel
Save