Skip to content

Hard dependency on Webpack when used with Electron #14

@ryanbarr

Description

@ryanbarr

Due to non_webpack_require at index.js:11, there is a hard dependency on Webpack if you are attempting to use node-native-ocr with Electron.

In my scenario, I am using Vite which uses rollup.js. Due to __non_webpack_require__ being Webpack-specific, this makes the library unusable in my scenario.

I'm open to suggestions on shims, but would be interested in more permanent solutions in the library itself.

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