sveltejs/svelte-preprocess

`prepareContent` should generate source maps

Open

#270 创建于 2020年10月8日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (150 fork)auto 404
enhancementhelp wanted

仓库指标

Star
 (1,798 star)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe.

prepareContent is used to strip indentation and prepend some data to any file. Would be a nice addition to generate a source map of the changes so we can have errors with correct line/columns.

Describe the solution you'd like

Possibly use magic-string, which is already a svelte dependency to generate the map.

Describe alternatives you've considered

🤷

How important is this feature to you? Would improve the DX for the rest of the language-tools.

贡献者指南