Skip to content

Tranformer napi provider a real Extension argument. #4071

@underfin

Description

@underfin

Current the tranform api using filename to get SourceType, but has other case at rollup/esbuild, eg. the js extension maybe using jsx sourceType for react project.

Here can't using a fake filename, because has some reasons.

  1. The sourcemap using filename as sources fields, using the fake name is incorrect.
  2. The jsx: 'development' need to using filename to display debugger info, using the fake name is incorrect.

Metadata

Metadata

Assignees

Labels

C-enhancementCategory - New feature or request

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions