Support declarationMap for @pika/plugin-ts-standard-pkg #64
Comments
I... don't actually know why that was disabled for all builds, maybe TS turns it on by default? Either way, that feels like something that should be configurable by the user. I'll remove that override so that anyone can configure it in their tsconfig instead |
Fixed in c4aa9e8 |
Uh, I think this fix doesn't work. It does generate For example, index.d.ts.map {
"version": 3,
"file": "index.d.ts",
"sourceRoot": "",
"sources": ["../../src/index.ts"],
"names": [],
"mappings": "AAAA;;;;GAIG;AACH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA"
} After install, it will become |
I have the exact same issue. Is is possible to copy the |
Ah, that was probably why it was disabled then. Remind me to add a comment next time :) Thanks everyone for debugging and @kripod for creating a quick fix |
Declaration map just like source map can let IDEs jump to the source file (ts) instead of .js file or .d.ts file.
I found in the source code, pika disabled the declaration map. Why?
https://github.com/pikapkg/builders/blob/master/packages/plugin-ts-standard-pkg/src/index.ts#L106
The text was updated successfully, but these errors were encountered: