You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling sourceMap allows stepping into comlink code when debugging and to have stack traces that point to the real source, if the source is also included in the npm package either as files or inline in the source map. declarationMap in tsconfig.json allows tools to map the .d.ts files back to the source, which for example allows cross-repository go-to-definition and find-all-references on sourcegraph.com.
This is currently difficult to add because the package.json is copied into dist/, and TypeScript would then point to ../comlink.ts as the source, which doesn't exist because .. would be node_modules. Why not publish the package root? Comlink is just a single file so it's always imported through the main import anyway.
The text was updated successfully, but these errors were encountered:
I agree. Should be non-breaking since comlink only has a single file that is the main/types field, which will continue to work with the same imports if just pointed to the files in dist/
Enabling
sourceMap
allows stepping into comlink code when debugging and to have stack traces that point to the real source, if the source is also included in the npm package either as files or inline in the source map.declarationMap
in tsconfig.json allows tools to map the .d.ts files back to the source, which for example allows cross-repository go-to-definition and find-all-references on sourcegraph.com.This is currently difficult to add because the package.json is copied into
dist/
, and TypeScript would then point to../comlink.ts
as the source, which doesn't exist because..
would benode_modules
. Why not publish the package root? Comlink is just a single file so it's always imported through the main import anyway.The text was updated successfully, but these errors were encountered: