|
|
|
@ -13,7 +13,7 @@ import { flatten } from '../../utils/flatten';
|
|
|
|
import check_enable_sourcemap from '../utils/check_enable_sourcemap';
|
|
|
|
import check_enable_sourcemap from '../utils/check_enable_sourcemap';
|
|
|
|
import { push_array } from '../../utils/push_array';
|
|
|
|
import { push_array } from '../../utils/push_array';
|
|
|
|
|
|
|
|
|
|
|
|
const regex_backslash = /\\/g;
|
|
|
|
const regex_backslashes = /\\/g;
|
|
|
|
|
|
|
|
|
|
|
|
export default function dom(
|
|
|
|
export default function dom(
|
|
|
|
component: Component,
|
|
|
|
component: Component,
|
|
|
|
@ -532,7 +532,7 @@ export default function dom(
|
|
|
|
constructor(options) {
|
|
|
|
constructor(options) {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
|
|
|
|
|
|
|
|
${css.code && b`this.shadowRoot.innerHTML = \`<style>${css.code.replace(regex_backslash, '\\\\')}${css_sourcemap_enabled && options.dev ? `\n/*# sourceMappingURL=${css.map.toUrl()} */` : ''}</style>\`;`}
|
|
|
|
${css.code && b`this.shadowRoot.innerHTML = \`<style>${css.code.replace(regex_backslashes, '\\\\')}${css_sourcemap_enabled && options.dev ? `\n/*# sourceMappingURL=${css.map.toUrl()} */` : ''}</style>\`;`}
|
|
|
|
|
|
|
|
|
|
|
|
@init(this, { target: this.shadowRoot, props: ${init_props}, customElement: true }, ${definition}, ${has_create_fragment ? 'create_fragment' : 'null'}, ${not_equal}, ${prop_indexes}, null, ${dirty});
|
|
|
|
@init(this, { target: this.shadowRoot, props: ${init_props}, customElement: true }, ${definition}, ${has_create_fragment ? 'create_fragment' : 'null'}, ${not_equal}, ${prop_indexes}, null, ${dirty});
|
|
|
|
|
|
|
|
|
|
|
|
|