From 0125d329518c25b7335c74f03493e28249fd6272 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 23 Apr 2022 16:43:59 -0700 Subject: [PATCH] Address build warning fixes. --- rollup.config.js | 6 ++++++ src/editor.ts | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index bfaa4b1e..5da89167 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -54,5 +54,11 @@ export default [ format: 'es', }, plugins: [...plugins], + // These two files use this at the toplevel, which causes rollup warning + // spam on build: `this` has been rewritten to `undefined` + moduleContext: { + './node_modules/@formatjs/intl-utils/lib/src/diff.js': 'window', + './node_modules/@formatjs/intl-utils/lib/src/resolve-locale.js': 'window', + }, }, ]; diff --git a/src/editor.ts b/src/editor.ts index 4e708d67..9e66ae70 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -6,7 +6,6 @@ import { HomeAssistant, LovelaceCardEditor, fireEvent } from 'custom-card-helper import { localize } from './localize/localize.js'; import { BUTTON_SIZE_MIN, - CameraConfig, RawFrigateCardConfig, RawFrigateCardConfigArray, THUMBNAIL_WIDTH_MAX, @@ -94,8 +93,6 @@ import { arrayMove, getCameraID, getCameraTitle, - getEntityTitle, - prettifyFrigateName, } from './common.js'; import { copyConfig,