Skip to content

Add support for pkg-prebuilds #204

Description

@jcaron23

Some modules like node-hid use pkg-prebuilds to load their native module. Such loads are apparently not recognised by webpack-asset-relocator-loader.

Would it be possible to add support for those loads?

Here's an example of how the native module is loaded in node-hid:

binding = require("pkg-prebuilds/bindings")(__dirname, options);

The name of the module itself is provided in options.name.

Thanks!

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