Skip to content

Commit

Permalink
Import dayjs plugins as ESmodule to resolve runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Jun 18, 2024
1 parent 3517c0f commit aae0c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cost.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AWS from 'aws-sdk';
import dayjs from 'dayjs';
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter.js';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js';
dayjs.extend(isSameOrAfter);
dayjs.extend(isSameOrBefore);
import { AWSConfig } from './config';
Expand Down

0 comments on commit aae0c9d

Please sign in to comment.