Closed Linkontoask closed 1 year ago
Sorry, I don’t understand what you’re saying. Are you saying that you expected App
to be in the output but it wasn’t? Nothing uses App
so it was tree-shaken away.
@evanw Thank you for your reply. Yes, I was expecting the App
to output in as well
I have just tried setting treeShaking to false and can pack the app into the product.
I want esbuild to automatically handle the duplicate imports in the file for me, and I also want to use its tree shaking capabilities to help me optimise my code and then output it to a file, I wrote the following code to try and do the above, but I could never get it right
Then the only answer I got in the final output was