|
|
@ -289,8 +289,6 @@ export default function dom(
|
|
|
|
target.insertBefore(this, anchor);
|
|
|
|
target.insertBefore(this, anchor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
customElements.define("${component.tag}", ${name});
|
|
|
|
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
builder.addBlock(deindent`
|
|
|
|
builder.addBlock(deindent`
|
|
|
@ -328,6 +326,10 @@ export default function dom(
|
|
|
|
${immutable && `${name}.prototype._differs = @_differsImmutable;`}
|
|
|
|
${immutable && `${name}.prototype._differs = @_differsImmutable;`}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (component.customElement) {
|
|
|
|
|
|
|
|
builder.addBlock(`customElements.define("${component.tag}", ${name});`);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let result = builder.toString();
|
|
|
|
let result = builder.toString();
|
|
|
|
|
|
|
|
|
|
|
|
return component.generate(result, options, {
|
|
|
|
return component.generate(result, options, {
|
|
|
|