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
Is your feature request related to a problem? Please describe.
When reading Cloud SDK code in the installed module folder or when stepping through it while debugging, the code is not as readable as it could be, because only the compiled JavaScript files are available, not the original TypeScript files.
Cloud SDK packages published on npm only contain the dist folder, which in turn contains .js (results of TS compilation), .d.ts (type definition files) and .d.ts.map (source maps). They do not contain the original source code, though they are referenced in the source maps, e.g.: @sap-cloud-sdk/connectivity/dist/scp-cf/destination/destination-from-service.d.ts.map
@johenning there has been some movement to the ticket. Just to update we wanted to provide the sourcemaps via a URL so that they are only downloaded if needed. This was not supported by VSC code yet but a PR is on the way:
Is your feature request related to a problem? Please describe.
When reading Cloud SDK code in the installed module folder or when stepping through it while debugging, the code is not as readable as it could be, because only the compiled JavaScript files are available, not the original TypeScript files.
Cloud SDK packages published on npm only contain the
dist
folder, which in turn contains.js
(results of TS compilation),.d.ts
(type definition files) and.d.ts.map
(source maps). They do not contain the original source code, though they are referenced in the source maps, e.g.:@sap-cloud-sdk/connectivity/dist/scp-cf/destination/destination-from-service.d.ts.map
I believe the only thing missing here is the
src
folder. If I copy thesrc
from Github into my local installation everything works as expected.Describe the solution you'd like
Publish the
src
folder for all packages (.spec.ts
files are unnecessary though).Alternatively, use
inlineSources
instead ofsourceMap
in https://github.com/SAP/cloud-sdk-js/blob/main/tsconfig.json.Impact / Priority
Low, just a quality of life improvement.
Affected development phase: all
Impact: Inconvenience
Timeline: Not time sensitive
The text was updated successfully, but these errors were encountered: