Skip to content

Redundant multiple Inputs #28

@jayeshchoudhary

Description

@jayeshchoudhary

I have build this repo with default input


input: [
    './src/index.ts',
    ...getFiles('./src/common', extensions),
    ...getFiles('./src/components', extensions),
    ...getFiles('./src/hooks', extensions),
     ...getFiles('./src/utils', extensions),
  ],

also with only src/index.ts input
input: [ './src/index.ts', ]

The output in dist folder is exactly same in both cases. I even verified with the final bundle analyzer It's exactly the same.

I believe since we have exported everything in our src/index.ts file. hence it is only our main entry point. and rollup is smart enough to take all index.ts into consideration.

can you please verify this once. I i am right then we can safely remove all the bundle util code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions