From 5188a38853b3d72103d82325ead82bc235f08ece Mon Sep 17 00:00:00 2001 From: egirard Date: Thu, 30 May 2024 02:09:01 -0400 Subject: [PATCH] Adds "lite" version (js only) Also changes test for CSS support to look for view-timeline --- .gitignore | 1 + demo/view-timeline/index.html | 2 +- package.json | 3 +- src/index-lite.js | 29 +++++++++++++++ src/index.js | 44 ++++------------------ src/init-polyfill.js | 69 +++++++++++++++++++++++++++++++++++ src/scroll-timeline-css.js | 2 +- vite.config.lite.js | 29 +++++++++++++++ 8 files changed, 139 insertions(+), 40 deletions(-) create mode 100644 src/index-lite.js create mode 100644 src/init-polyfill.js create mode 100644 vite.config.lite.js diff --git a/.gitignore b/.gitignore index eb81cb81..bb293c19 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ node_modules # demos deployment directory build dist +dist-lite # jest coverage folder coverage diff --git a/demo/view-timeline/index.html b/demo/view-timeline/index.html index 6f91c1f9..71634046 100644 --- a/demo/view-timeline/index.html +++ b/demo/view-timeline/index.html @@ -169,7 +169,7 @@ - +