From c68282fbde7e731cb1c0d09a2f05a929d0bcd32b Mon Sep 17 00:00:00 2001 From: jannikac Date: Mon, 17 Jun 2024 22:02:01 +0200 Subject: [PATCH] Use unminified builds in npm exports This aids IDEs' go to definition feature. Also indicate unpkg links in the readme for browsers. --- README.md | 10 ++++++++-- package.json | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dc40eba0..600a6402 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are working with a browser, be aware this is an ES6 module: ```html + ``` +The browser examples above use the minified versions of the library, which is probably what you want. +However, there are also unminified versions of ICAL.js available on unpkg. + +- Unminified ES6 module: `https://unpkg.com/ical.js/dist/ical.js` +- Unminified ES5 version: `https://unpkg.com/ical.js/dist/ical.es5.cjs` + ## Timezones The stock ical.js does not register any timezones, due to the additional size it brings. If you'd like to do timezone conversion, and the timezone definitions are not included in the respective ics diff --git a/package.json b/package.json index ea1659d9..59a31d90 100644 --- a/package.json +++ b/package.json @@ -66,8 +66,8 @@ "ghpages": "npm run jsdoc && npm run validator && npm run recurtester" }, "exports": { - "import": "./dist/ical.min.js", - "require": "./dist/ical.es5.min.cjs" + "import": "./dist/ical.js", + "require": "./dist/ical.es5.cjs" }, "files": [ "dist/ical.js",