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(action): decrease bundle size #166

Merged
merged 1 commit into from
Nov 1, 2023
Merged

perf(action): decrease bundle size #166

merged 1 commit into from
Nov 1, 2023

Conversation

mcous
Copy link
Member

@mcous mcous commented Nov 1, 2023

Target imports more specifically to reduce action bundle size

Before:

[dist]
[dist] > @jsdevtools/[email protected] build:dist
[dist] > esbuild src/action/main.ts --bundle --sourcemap --outdir=dist --platform=node --target=node16
[dist]
[dist]
[dist]   dist/main.js      376.3kb
[dist]   dist/main.js.map  587.1kb

After:

[dist]
[dist] > @jsdevtools/[email protected] build:dist
[dist] > esbuild src/action/main.ts --bundle --sourcemap --outdir=dist --platform=node --target=node16
[dist]
[dist]
[dist]   dist/main.js      241.7kb
[dist]   dist/main.js.map  349.9kb

@mcous mcous merged commit 8d0621f into main Nov 1, 2023
15 checks passed
@mcous mcous deleted the smaller-action-bundle branch November 1, 2023 23:56
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