Address build warning fixes.

This commit is contained in:
Dermot Duffy
2022-04-23 16:43:59 -07:00
parent 7273e699a6
commit 0125d32951
2 changed files with 6 additions and 3 deletions
+6
View File
@@ -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',
},
},
];
-3
View File
@@ -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,