Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Commit 1171628

Browse files
committed
🐞 transpile ESM to CJS for Node.js (close #2)
1 parent b7f5635 commit 1171628

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

β€Žsrc/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
getDaysInMonth,
66
setDate,
77
startOfMonth
8-
} from 'date-fns/esm'
8+
} from 'date-fns'
99

1010
const DAYS_IN_WEEK = 7
1111

β€Žtasks/babel/config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export const babelConfigNode = {
99
{
1010
targets: {
1111
node: '8.6.0'
12-
},
13-
modules: false
12+
}
1413
}
1514
]
1615
]

0 commit comments

Comments
Β (0)