Skip to content

Add flag to skip source-map-support install() #1533

Open
@cspotcode

Description

@cspotcode

Related:
#796
#1473
cspotcode/node-source-map-support#23

Add a configuration option, perhaps named installSourceMapSupport or sourceMapHooks, which can be used to disable require('@cspotcode/source-map-support').install()

Important things to consider:

  • Do we continue to generate sourcemaps when compiling? Probably the best answer is "yes" to be compatible with node's built-in --enable-source-maps
    • Maybe we should obey the user's tsconfig? If they have sourcemaps turned on/off in tsconfig, then we do/don't generate sourcemaps?
  • Clearly document default behavior:
    • with --enable-source-maps enabled, default is "off"
    • without --enable-source-maps, default is "on"
    • When set to true or false via config, overrides the default

Metadata

Metadata

Assignees

No one assigned

    Labels

    you can do thisGood candidate for a pull request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions