From f63375dea89becbd3bb2bb8ea7289c58c752bfed Mon Sep 17 00:00:00 2001 From: iamkun Date: Sun, 3 Jan 2021 15:46:48 +0800 Subject: [PATCH] feat: add ES6 Module Support, package.json module point to "esm/index.js" (#1298) fix #598, fix #313 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37bf1661..fb7d94ae 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "2KB immutable date time library alternative to Moment.js with the same modern API ", "main": "dayjs.min.js", "types": "index.d.ts", - "module": "dayjs.min.js", + "module": "esm/index.js", "scripts": { "test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && TZ=America/Whitehorse npm run test-tz && npm run test-tz && jest", "test-tz": "date && jest test/timezone.test --coverage=false",