Skip to content

Allow specifying the library path with an env variable #2468

@sigmaSd

Description

@sigmaSd

This is sometimes useful, for example I want to package an app that uses napi-rs as flatpak, with this I can fetch the library at packaging time and have granular control on how to use it, for example I'm compiling an app with deno, this helps me to bundle the library

If this is ok , it should be a simple change, just adding a check for an env variable at the top of this function

function requireNative() {

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