Skip to content
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

Fable compiler output appears in webpack profiler json output #1862

Closed
anchann opened this issue Jul 16, 2019 · 1 comment

Comments

@anchann
Copy link

commented Jul 16, 2019

Description

When trying to profile webpack's import resolution with the following command:

./node_modules/.bin/webpack --config webpack.config.build.js --profile --json > stats.json

I expect to get only JSON output from webpack inside the stats.json file, but instead, fable compiler's output (fable: Compiled src/... and so forth) appears at the top of the file.

It's only a minor annoyance since this output can simply be deleted, but webpack's analysis tool (http://webpack.github.io/analyse/) silently fails on faulty JSON, making this bug pretty annoying to debug for new users.

Repro code

Any webpack based fable project.

Expected and actual results

stats.json file should contain valid json.

Related information

  • Fable version: 2.3.12
  • Operating system Mac OS 10.13.6
@alfonsogarciacaro

This comment has been minimized.

Copy link
Member

commented Jul 23, 2019

Ah, yeah, that's true. I had a similar problem when analyzing the Webpack bundle and had to edit the generated JSON manually.

We already have a --verbose flag, so I guess we could also have a --silent flag to skip all output from Fable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.