loopbackio / loopbackio/loopback-next

Use `--enable-source-maps` instead of `source-map-support`

Open
#6,393 6 comments 1 reaction 1 assignee View on GitHub

@itamar244 is already working on this.

Since Oct 10, 2020.

breaking-change feature good first issue Internal Tooling
Dominant language
TypeScript
Stars
5.1k
Forks
1.1k
Avg merge
2d 21h
Merged PRs (30d)
27

Description

Starting from version 12.12.0, Node.js offers built-in support for translating error stack traces using source maps - learn more here: https://medium.com/@nodejs/source-maps-in-node-js-482872b56116

Let's rework `@loopback/build` to use this new feature on recent version of Node.js, instead of `source-map-support` module.

If it's possible, then implement a fallback to npm module `source-map-support` when running on Node.js 10.x.

If that's not possible, then this change must wait until we can drop support for Node.js 10.x, which will happen after 10.x reaches EOL on 2021-04-30 per https://github.com/nodejs/Release.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.