-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention that build report only works for :browser target #1163
Comments
Technically it works for multiple targets, but most other targets don't care about build size that much. What was the confusion? Only builds without source maps technically shouldn't work? |
Ah, thanks for the clarification!
In my case it's a
Maybe a |
Try adding |
Its mostly all a configuration issue. The build reports works by analyzing the source maps for the generated output files. So, in case of Happy to fix exact problems if you have a repro. In theory there is nothing stopping the build reports from working for any build, just often not super useful thus I never worked on it. |
Nope, that alone didn't do the trick, same error. I'll try to prepare a self-contained repro! |
You get a working report, if you change the config to {:source-paths ["src"]
:builds
{:foo
{:target :node-library
:output-to "out/main.js"
:output-dir "out"
:build-hooks [(shadow.cljs.build-report/hook
{:output-to "out/report.html"})]
:exports-var foo/exports}}} Note that the |
As of |
Ah good to know, thanks! AFAICT this isn't mentioned in the user guide, at least not in the Build Hooks section. It only mentions that
Great! It works now with an |
At the moment, the user guide doesn't mention that the build report feature only works for the
:browser
target. Would be nice if it did to save new users some head scratching 🙏The text was updated successfully, but these errors were encountered: