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.
I have build this repo with default input
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.