Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom package script #81

Merged
merged 4 commits into from
Jan 1, 2024
Merged

Add custom package script #81

merged 4 commits into from
Jan 1, 2024

Conversation

metonym
Copy link
Owner

@metonym metonym commented Jan 1, 2024

Adds a script for a custom package process.

The goal is to minimize the distributed package size. This includes omitting the CHANGELOG (which is hosted in GitHub) along with deleting unused fields in the package.json.

A breaking change is to make the package shallower by removing the src folder.

This is fairly minor change for the end consumer. If anything, it's nicer since the import is more concise.

- import IO from "svelte-intersection-observer/src/IntersectionObserver.svelte";
+ import IO from "svelte-intersection-observer/IntersectionObserver.svelte";

Distributed NPM package size is ~76% smaller:

- 56.5 kB
+ 13.3 kB

Copy link

render bot commented Jan 1, 2024

@metonym metonym merged commit d425b54 into master Jan 1, 2024
1 check passed
@metonym metonym deleted the upgrades branch January 1, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant