From 74e9fb6e6e1b028fd8dcc4fde5eef492e961a663 Mon Sep 17 00:00:00 2001 From: jannikac Date: Sat, 15 Jun 2024 14:19:54 +0200 Subject: [PATCH 1/2] updated `exports` to point to unminified versions --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7e40a551..aebac8f7 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,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", From 7da0ba9ea88a23d7dc720a2ef3614590e6edf6c1 Mon Sep 17 00:00:00 2001 From: jannikac Date: Sat, 15 Jun 2024 14:21:18 +0200 Subject: [PATCH 2/2] updated README.md browser example to use the minified versions --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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