Is this a support request?
No
Describe the bug
The source maps reference files that get excluded from the distributions published to NPM, causing source mapping errors
e.g. in index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"]…
The entire src folder is not included
To reproduce
Try to debug SDK calls in VSCode
Expected behavior
Either the source maps should not reference missing files, or the source files should be published to NPM
Logs
Could not load source '(local path omitted)/node_modules/@launchdarkly/js-server-sdk-common/src/LDClientImpl.ts': Unable to retrieve source content.
SDK version
@launchdarkly/node-server-sdk@npm:^9.5.0, @launchdarkly/js-sdk-common@npm:2.5.0, @launchdarkly/js-server-sdk-common@npm:2.4.4
Language version, developer tools
Node v18.13.0, VSCode 1.92.2
OS/platform
macOS 14.6.1 (23G93)
Is this a support request?
No
Describe the bug
The source maps reference files that get excluded from the distributions published to NPM, causing source mapping errors
e.g. in
index.js.mapThe entire
srcfolder is not includedTo reproduce
Try to debug SDK calls in VSCode
Expected behavior
Either the source maps should not reference missing files, or the source files should be published to NPM
Logs
SDK version
@launchdarkly/node-server-sdk@npm:^9.5.0,@launchdarkly/js-sdk-common@npm:2.5.0,@launchdarkly/js-server-sdk-common@npm:2.4.4Language version, developer tools
Node v18.13.0, VSCode 1.92.2
OS/platform
macOS 14.6.1 (23G93)