From 23f9f3dd57664c06f885fcbcf978f1dafbb69ee8 Mon Sep 17 00:00:00 2001 From: iamkun Date: Thu, 14 Feb 2019 11:29:23 +0800 Subject: [PATCH] fix: Fix commonJS require ES Module bug in webpack4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5b3da884..c600258e 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": "./esm/index.js", + "module": "dayjs.min.js", "scripts": { "test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && npm run test-tz && jest", "test-tz": "jest test/timezone.test --coverage=false",