unjs / unbuild

📦 A unified JavaScript build system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sourcemap support does not work out of the box

Zamiell opened this issue · comments

Hello and thanks for the helpful tool.

According to #286, it looks like unbuild supports generation of source maps.
However, this does not seem to happen automatically, even if "declarationMap": true is set in the project's tsconfig.json file.
Shouldn't unbuild automatically read the TypeScript config and generate a source map if this is set to true?

Hi, dear @Zamiell. You should set sourcemap: true in build.config to enable sourcemap support. unbuild does not infer from tsconfig.json