From 9460b7e5dd7c234e6692c0ef0a92244d693445e3 Mon Sep 17 00:00:00 2001 From: iamkun Date: Mon, 14 Jan 2019 19:02:20 +0800 Subject: [PATCH] chore(module): add ES2015 module support --- .npmignore | 1 - package.json | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 4f08223c0..3e276781d 100644 --- a/.npmignore +++ b/.npmignore @@ -13,7 +13,6 @@ package-lock.json coverage # dev -src test build .babelrc diff --git a/package.json b/package.json index 1a64995be..05a9cf2cd 100644 --- a/package.json +++ b/package.json @@ -4,6 +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": "./src/index.js", "scripts": { "test": "jest", "test-dst": "TZ=Pacific/Auckland npm run dst-test && TZ=Europe/London npm run dst-test && npm run dst-test",