[node] Fix ESM dependency support (#9692)

This commit is contained in:
Chris Barber
2023-04-26 12:23:43 -05:00
committed by GitHub
parent fda76691d1
commit 65a6e713c8
54 changed files with 1750 additions and 138 deletions

View File

@@ -0,0 +1,6 @@
import isLeapYear from 'leap-year';
export default async function handler(req, res) {
const data = { isLeapYear: isLeapYear() };
res.status(200).json(data);
}