Skip to content

Unsupported source map comment for compiled TypeScript #1358

@AlCalzone

Description

@AlCalzone

I originally opened this issue at egoist/esbuild-register#11, but it looks like the warnings come from esbuild itself.

When running scripts with esbuild-register, I'm getting a ton of these warnings in the stdout:

{
  column: 21,
  file: 'C:\\Repositories\\node-zwave-js\\packages\\core\\build\\index.js',
  length: 12,
  line: 32,
  lineText: '//# sourceMappingURL=index.js.map',
  namespace: ''
}
Unsupported source map comment
{
  column: 21,
  file: 'C:\\Repositories\\node-zwave-js\\packages\\core\\build\\capabilities\\CommandClasses.js',
  length: 21,
  line: 245,
  lineText: '//# sourceMappingURL=CommandClasses.js.map',
  namespace: ''
}
Unsupported source map comment
{
  column: 21,
  file: 'C:\\Repositories\\node-zwave-js\\packages\\shared\\build\\index.js',
  length: 12,
  line: 21,
  lineText: '//# sourceMappingURL=index.js.map',
  namespace: ''
}

These are the default source map comments that TS outputs and I believe they match the comment here

// Relative path in a file with an absolute path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions