From 993800444fd0c7bffe7ab1d74d707f60deb2d96b Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 27 Dec 2023 17:11:16 +0100 Subject: [PATCH] limit webpack imports --- src/components/ha-markdown-element.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ha-markdown-element.ts b/src/components/ha-markdown-element.ts index 3f2c904428f4..0e806b7c7dcf 100644 --- a/src/components/ha-markdown-element.ts +++ b/src/components/ha-markdown-element.ts @@ -101,7 +101,9 @@ class HaMarkdownElement extends ReactiveElement { node.localName ) ) { - import(`./${node.localName}`); + import( + /* webpackInclude: /(ha-alert)|(ha-qr-code)|(ha-icon)|(ha-svg-icon)/ */ `./${node.localName}` + ); } } }