Skip to content

Source maps reference files not published to NPM #109

@vdh

Description

@vdh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions