Skip to content

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

@ahaoboy

Description

@ahaoboy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions