fix: really import esm version of dayjs
This commit is contained in:
parent
d132d26246
commit
4643bb1c00
|
@ -1,8 +1,8 @@
|
||||||
import { sanitizeUrl } from '@braintree/sanitize-url';
|
import { sanitizeUrl } from '@braintree/sanitize-url';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs/esm';
|
||||||
import dayjsIsoWeek from 'dayjs/plugin/isoWeek.js';
|
import dayjsIsoWeek from 'dayjs/esm/plugin/isoWeek';
|
||||||
import dayjsCustomParseFormat from 'dayjs/plugin/customParseFormat.js';
|
import dayjsCustomParseFormat from 'dayjs/esm/plugin/customParseFormat';
|
||||||
import dayjsAdvancedFormat from 'dayjs/plugin/advancedFormat.js';
|
import dayjsAdvancedFormat from 'dayjs/esm/plugin/advancedFormat';
|
||||||
import { log } from '../../logger';
|
import { log } from '../../logger';
|
||||||
import * as configApi from '../../config';
|
import * as configApi from '../../config';
|
||||||
import utils from '../../utils';
|
import utils from '../../utils';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// @ts-nocheck TODO: Fix TS
|
// @ts-nocheck TODO: Fix TS
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs/esm';
|
||||||
import ganttDb from './ganttDb';
|
import ganttDb from './ganttDb';
|
||||||
import { convert } from '../../tests/util';
|
import { convert } from '../../tests/util';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs/esm';
|
||||||
import { log } from '../../logger';
|
import { log } from '../../logger';
|
||||||
import {
|
import {
|
||||||
select,
|
select,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs/esm';
|
||||||
|
|
||||||
export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue