Add QR code element (#19155)

* Add QR code element

* fixes

* move to workflow

* limit webpack imports
This commit is contained in:
Bram Kragten
2023-12-27 17:22:09 +01:00
committed by GitHub
parent 953a3793c4
commit caece9d6ad
9 changed files with 148 additions and 62 deletions

View File

@@ -95,6 +95,15 @@ class HaMarkdownElement extends ReactiveElement {
}
node.firstElementChild!.replaceWith(alertNote);
}
} else if (
node instanceof HTMLElement &&
["ha-alert", "ha-qr-code", "ha-icon", "ha-svg-icon"].includes(
node.localName
)
) {
import(
/* webpackInclude: /(ha-alert)|(ha-qr-code)|(ha-icon)|(ha-svg-icon)/ */ `./${node.localName}`
);
}
}
}