[npm] Produce more readable build error messages.

The `npm run build` and `npm start` were producing quite messy error
messages, which are hard to parse, and the `esbuild` and `tsc` error
message format was also (naturally) different. This change adjusts
the error messages to always report in the `tsc` format (which is
well understood and supported by IDEs and tools). It also removes
the unnecessary clutter from the error messages and simplifies it to
basically this (for `tsc`)

```
✖ TypeScript compilation failed for `Debug'

front_end/panels/timeline/components/insights/Checklist.ts(46,1): error TS1128: Declaration or statement expected.
front_end/panels/timeline/components/insights/Checklist.ts(46,8): error TS1434: Unexpected keyword or identifier.
front_end/panels/timeline/components/insights/Checklist.ts(46,8): error TS2304: Cannot find name 'TableDataRow'.
front_end/panels/timeline/components/insights/Checklist.ts(48,3): error TS2552: Cannot find name 'overlays'. Did you mean 'Overlays'?
front_end/panels/timeline/components/insights/Checklist.ts(48,12): error TS1109: Expression expected.
front_end/panels/timeline/components/insights/Checklist.ts(48,14): error TS1361: 'Overlays' cannot be used as a value because it was imported using 'import type'.
front_end/panels/timeline/components/insights/Checklist.ts(48,32): error TS2339: Property 'TimelineOverlay' does not exist on type 'typeof import("/usr/local/google/home/bmeurer/Projects/devtools/devtools-frontend/out/Debug/gen/front_end/panels/timeline/overlays/OverlaysImpl")'.
front_end/panels/timeline/components/insights/Checklist.ts(48,48): error TS1011: An element access expression should take an argument.
front_end/panels/timeline/components/insights/Table.ts(26,71): error TS1005: ',' expected.
front_end/panels/timeline/components/insights/Table.ts(26,71): error TS2304: Cannot find name 'a'.
front_end/panels/timeline/components/insights/Table.ts(26,74): error TS2345: Argument of type 'RegisteredFileStrings' is not assignable to parameter of type 'string'.
front_end/panels/timeline/components/insights/Table.ts(66,39): error TS2554: Expected 0-1 arguments, but got 2.
```

and this (for `esbuild`):

```
✖ TypeScript compilation failed for `Default'

front_end/panels/timeline/components/insights/Checklist.ts(46,7): error TS0666: Unexpected "TableDataRow"
front_end/panels/timeline/components/insights/Table.ts(26,70): error TS0666: Expected ")" but found "a"
```

Bug: 411328609
Change-Id: Ic0be7780a91810386e38997c7237210aa69f63dd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6469693
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
3 files changed
tree: c9650cb2895c8906afb25f83195efbb592df6ec3
  1. .vscode/
  2. build_overrides/
  3. config/
  4. docs/
  5. extension-api/
  6. extensions/
  7. front_end/
  8. inspector_overlay/
  9. node_modules/
  10. scripts/
  11. test/
  12. third_party/
  13. v8/
  14. .clang-format
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitallowed
  18. .gitattributes
  19. .gitignore
  20. .gitmodules
  21. .gn
  22. .mailmap
  23. .npmignore
  24. .npmrc
  25. .style.yapf
  26. .stylelintignore
  27. .stylelintrc.json
  28. AUTHORS
  29. BUILD.gn
  30. codereview.settings
  31. CONTRIBUTING.md
  32. DEPS
  33. eslint.config.mjs
  34. favicon.ico
  35. LICENSE
  36. OWNERS
  37. package-lock.json
  38. package.json
  39. PRESUBMIT.py
  40. README.md
  41. tsconfig.json
  42. WATCHLISTS
README.md

Chrome DevTools frontend

npm package

The client-side of the Chrome DevTools, including all TypeScript & CSS to run the DevTools webapp.

Source code and documentation

The frontend is available on chromium.googlesource.com. Check out the Chromium DevTools documentation for instructions to set up, use, and maintain a DevTools front-end checkout, as well as design guidelines, and architectural documentation.

Source mirrors

DevTools frontend repository is mirrored on GitHub.

DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES modules, so consuming this package in other tools may require some effort.

The version number of the npm package (e.g. 1.0.373466) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.

Getting in touch

There are a few options to keep an eye on the latest and greatest of DevTools development: