Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
I've made some updates and improvements to the Vanilla LazyLoad build steps, in order to take advantage of all the possibilities offered by ES Module.
😉 Why?
To use the ES6 module (ESM) build as tree shakeable instead of a single file has several advantages:
Here's a breakdown of what's been done:
Package json
"sideEffects": false,
"type": "module",
Dependency Updates:
Rollup Setup Enhancement:
Demo Addition:
Added a demo to showcase the functionality of the esm module.
Warns
The compiled files were not included in this PR to avoid clutter. Anyhow if requested, they can be added before merging the PR
Recap
These changes aim to ensure the Vanilla LazyLoad module stays up-to-date and continues to deliver a seamless experience for users. I've tested these modifications extensively to ensure they work as intended.
Please review the changes at your earliest convenience, and let me know if there are any further adjustments or additions needed.
Thanks for considering these updates!