Address build warning fixes.
This commit is contained in:
@@ -54,5 +54,11 @@ export default [
|
|||||||
format: 'es',
|
format: 'es',
|
||||||
},
|
},
|
||||||
plugins: [...plugins],
|
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',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { HomeAssistant, LovelaceCardEditor, fireEvent } from 'custom-card-helper
|
|||||||
import { localize } from './localize/localize.js';
|
import { localize } from './localize/localize.js';
|
||||||
import {
|
import {
|
||||||
BUTTON_SIZE_MIN,
|
BUTTON_SIZE_MIN,
|
||||||
CameraConfig,
|
|
||||||
RawFrigateCardConfig,
|
RawFrigateCardConfig,
|
||||||
RawFrigateCardConfigArray,
|
RawFrigateCardConfigArray,
|
||||||
THUMBNAIL_WIDTH_MAX,
|
THUMBNAIL_WIDTH_MAX,
|
||||||
@@ -94,8 +93,6 @@ import {
|
|||||||
arrayMove,
|
arrayMove,
|
||||||
getCameraID,
|
getCameraID,
|
||||||
getCameraTitle,
|
getCameraTitle,
|
||||||
getEntityTitle,
|
|
||||||
prettifyFrigateName,
|
|
||||||
} from './common.js';
|
} from './common.js';
|
||||||
import {
|
import {
|
||||||
copyConfig,
|
copyConfig,
|
||||||
|
|||||||
Reference in New Issue
Block a user