Skip to content

Usage with esbuild triggers warnings #73

@tcodes0

Description

@tcodes0

I'm using pg which seems to bring this in as a dep. esbuild complains when bundling

 > node_modules/bindings/bindings.js:94:8: warning: Indirect calls to "require" will not be bundled (surround with a try/catch to silence this warning)
    94 │       : require;
       ╵         ~~~~~~~

this part seems to be the problem as it doesn't like require changing names.

Simplest solution is to remove that piece of code but that might break webpack support, so not sure.

Not too familiar with the lib or what it does, just opening for awareness

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions