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

perf(bundle): remove unneeded type declarations #43

Merged
merged 1 commit into from
May 20, 2024

Conversation

rwaskiewicz
Copy link
Collaborator

remove type declarations from files that are a not a part of the output target's entrypoint. this is accomplished in package.json by updating the files included in the bundle.

update the tsconfig.json to strip comments out, as that further reduces the size of the library.

remove type declarations from files that are a not a part of the output
target's entrypoint. this is accomplished in `package.json` by updating
the files included in the bundle.

update the `tsconfig.json` to strip comments out, as that further
reduces the size of the library.

After:
npm notice Tarball Contents
npm notice 1.0kB LICENSE.md
npm notice 4.9kB README.md
npm notice 3.3kB dist/contributions/html-contributions.js
npm notice 838B dist/contributions/js-contributions.js
npm notice 1.4kB dist/generate-web-types.js
npm notice 1.1kB dist/index.d.ts
npm notice 2.3kB dist/index.js
npm notice 1.2kB package.json
npm notice Tarball Details
npm notice package size: 5.8 kB
npm notice unpacked size: 16.2 kB

Before:
npm notice Tarball Contents
npm notice 1.0kB LICENSE.md
npm notice 4.9kB README.md
npm notice 1.8kB dist/contributions/html-contributions.d.ts
npm notice 6.7kB dist/contributions/html-contributions.js
npm notice 419B dist/contributions/js-contributions.d.ts
npm notice 1.0kB dist/contributions/js-contributions.js
npm notice 1.2kB dist/generate-web-types.d.ts
npm notice 2.7kB dist/generate-web-types.js
npm notice 3.2kB dist/index.d.ts
npm notice 3.7kB dist/index.js
npm notice 1.2kB package.json
npm notice package size: 8.5 kB
npm notice unpacked size: 27.9 kB
@rwaskiewicz rwaskiewicz force-pushed the minimize-bundle-dts branch from 1483fe5 to 78f7fee Compare May 19, 2024 23:57
@rwaskiewicz rwaskiewicz enabled auto-merge May 19, 2024 23:57
@rwaskiewicz rwaskiewicz added this pull request to the merge queue May 19, 2024
Merged via the queue into main with commit 8677b52 May 20, 2024
3 checks passed
@rwaskiewicz rwaskiewicz deleted the minimize-bundle-dts branch July 11, 2024 11:59
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