Skip to content

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
@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.

2 participants