Skip to content

Referencing package.json breaks minification builds like esbuild #173

@esseswann

Description

@esseswann

This line tries to find the package.json by an absolute path which might not be available if the build is fully minified and tree-shaked during compile time.
https://github.com/ydb-platform/ydb-nodejs-sdk/blob/5b9a68cb6e49344d2013cc82df28a8e17ea405e7/src/version.ts#L7
It should either be referenced in the compile time (macro or otherwise) or not depend on it during runtime

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