From 98401d643175ac516d65ea460ec67b343655b6c4 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sun, 3 Jan 2021 15:06:09 +0800 Subject: [PATCH] feat: add ES6 Module Support, package.json module point to "esm/index.js" fix #598, fix #313 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37bf16612..fb7d94ae9 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",