From 1bc49cd8798841bbd488bf6e37b7652a1c0cbb4c Mon Sep 17 00:00:00 2001 From: Alexandre Amalric <119614409+aamalric-talend@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:42:32 +0100 Subject: [PATCH] fix(): Reduce package size by fixing date-fns import (#5050) --- .changeset/clean-frogs-check.md | 5 +++++ packages/utils/src/date/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/clean-frogs-check.md diff --git a/.changeset/clean-frogs-check.md b/.changeset/clean-frogs-check.md new file mode 100644 index 00000000000..d3a19080de7 --- /dev/null +++ b/.changeset/clean-frogs-check.md @@ -0,0 +1,5 @@ +--- +'@talend/utils': minor +--- + +fix(): Reduce package size by fixing date-fns import diff --git a/packages/utils/src/date/index.ts b/packages/utils/src/date/index.ts index 41075388c05..1e06befdc90 100644 --- a/packages/utils/src/date/index.ts +++ b/packages/utils/src/date/index.ts @@ -1,5 +1,5 @@ -import { parseISO } from 'date-fns'; import dateFnsFormat from 'date-fns/format'; +import parseISO from 'date-fns/parseISO'; import * as generator from './generator';