Open TommasoAmici opened 1 year ago
Can you try passing --target=bun
or --target=node
to to bun build
?
With --target=node
or --target=bun
I don't have this issue, but I was under the impression that since I'm targeting browsers I should stick to the default --target=browser
.
EDIT: I reread my initial message and I realize I didn't make this clear, sorry about that! I'm trying to migrate a project from CRA to use bun at least when developing locally
We also target browser in our app, but have lingui dependency, which in turn has the same resolve-from
dependency, where bun build
fails for us.
We use lingui both in runtime for fetching localisation strings and when building for extracting. Not sure if this use-case might be supported in future in bun or if we can use some workaround now?
We also got the same issue with a regular website build. It is same, from resolve-from which I don't use directly but some react packages uses. When I set target to node and try to run in on browser, it fails.
What is the problem this feature would solve?
When bundling applications with
bun build
I've run into this error message:This code is not used directly in my application, so it must be used in some imported library, however it's pretty much impossible to figure out which one
What is the feature you are proposing to solve the problem?
it'd be nice to have a more verbose build log, perhaps behind a
--verbose
flag if you think it'd pollute the output, to print extra information that could help hunt down the problemWhat alternatives have you considered?
No response