mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 22:01:49 +01:00
Qualify CJS-only module imports
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { PhoneNumberUtil, PhoneNumberFormat } from 'google-libphonenumber';
|
||||
import googleLibphonenumber from 'google-libphonenumber';
|
||||
import * as moment from 'moment';
|
||||
// @ts-expect-error -- no types
|
||||
import 'moment/min/locales.min';
|
||||
import 'moment/min/locales.min.js';
|
||||
|
||||
import { textsecure } from '../../textsecure/index.js';
|
||||
import { initialize as initializeLogging } from '../../logging/set_up_renderer_logging.js';
|
||||
@@ -15,6 +15,8 @@ import { createLogger } from '../../logging/log.js';
|
||||
import { SignalContext } from '../context.js';
|
||||
import * as Attachments from './attachments.js';
|
||||
|
||||
const { PhoneNumberUtil, PhoneNumberFormat } = googleLibphonenumber;
|
||||
|
||||
const log = createLogger('phase2-dependencies');
|
||||
|
||||
initializeLogging();
|
||||
|
||||
Reference in New Issue
Block a user