node-native-ocr icon indicating copy to clipboard operation
node-native-ocr copied to clipboard

Hard dependency on Webpack when used with Electron

Open ryanbarr opened this issue 2 years ago • 1 comments

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.

ryanbarr avatar Jul 20 '22 02:07 ryanbarr