Use lodash cloneDeep and generate facade chunk.

This commit is contained in:
Dermot Duffy
2022-10-10 19:04:29 -07:00
parent b1922fc70b
commit da7895903e
4 changed files with 14 additions and 8 deletions
+6 -1
View File
@@ -65,7 +65,12 @@ const plugins = [
*/
const config = {
input: 'src/card.ts',
preserveEntrySignatures: false,
// Specifically want a facade created as HACS will attach a hacstag
// queryparameter to the resource. Without a facade when chunks re-import the
// card chunk, they'll refer to a 'different' copy of the card chunk without
// the hacstag, causing a re-download of the same content and functionality
// problems.
preserveEntrySignatures: 'strict',
output: {
entryFileNames: 'frigate-hass-card.js',
dir: 'dist',