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

Only use getInput function, the bundle size is more than 400k #1959

Open
ahaoboy opened this issue Feb 17, 2025 · 0 comments
Open

Only use getInput function, the bundle size is more than 400k #1959

ahaoboy opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ahaoboy
Copy link

ahaoboy commented Feb 17, 2025

Describe the bug

Only use getInput function, the bundle size is more than 400k

import { getInput } from '@actions/core'

console.log(getInput('name'))

To Reproduce

https://github.com/ahaoboy/core-bundle-test

git clone  https://github.com/ahaoboy/core-bundle-test
cd core-bundle-test
pnpm install
pnpm run bundle
> core-bundle@1.0.0 bundle C:\code\core-bundle
> esbuild --outdir=bundle --bundle --minify --platform=node --format=cjs src/action.ts --metafile=meta.json


  bundle\action.js  446.2kb

Expected behavior

Using only the getInput function shouldn't introduce such a huge dependency

Screenshots

Image

@ahaoboy ahaoboy added the bug Something isn't working label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant