diff --git a/src/v2/legacyParse/index.ts b/src/v2/legacyParse/index.ts index d7214a8..6144609 100644 --- a/src/v2/legacyParse/index.ts +++ b/src/v2/legacyParse/index.ts @@ -1,4 +1,4 @@ -import { isDate } from 'date-fns' +import isDate from 'date-fns/isDate' const MILLISECONDS_IN_HOUR = 3600000 const MILLISECONDS_IN_MINUTE = 60000 diff --git a/tsconfig.json b/tsconfig.json index 1ee38db..c0cb023 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,9 @@ "outDir": "lib", "strict": true, "noImplicitAny": true, - "allowSyntheticDefaultImports": true + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "moduleResolution": "node" }, "exclude": ["**/test.ts", "lib", "node_modules"] }