From 11716284fa30ed43c1c4a46b58f2b3f7b9981ca9 Mon Sep 17 00:00:00 2001 From: Kir Belevich Date: Thu, 30 May 2019 11:50:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20transpile=20ESM=20to=20CJS=20for?= =?UTF-8?q?=20Node.js=20(close=20#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- tasks/babel/config.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 28d6b09..63eca21 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,7 @@ import { getDaysInMonth, setDate, startOfMonth -} from 'date-fns/esm' +} from 'date-fns' const DAYS_IN_WEEK = 7 diff --git a/tasks/babel/config.ts b/tasks/babel/config.ts index 10d70e8..107b47c 100644 --- a/tasks/babel/config.ts +++ b/tasks/babel/config.ts @@ -9,8 +9,7 @@ export const babelConfigNode = { { targets: { node: '8.6.0' - }, - modules: false + } } ] ]