textract icon indicating copy to clipboard operation
textract copied to clipboard

Webpack Support

Open perevernihata opened this issue 6 years ago • 2 comments

It is not possible to use this module with webpack bundle. Textract tries to fs.readdirSync and dynamically import modules, but since package is bundled no modules are found. https://github.com/dbashford/textract/blob/e5ef131dba562aac8dcf740a8d6afa1aa6c11121/lib/extract.js#L74 Is it possible to avoid import during run-time?

perevernihata avatar Apr 29 '18 08:04 perevernihata

👍

I need to double back and fix a few last things and get the next version released. I can take a look at this at the same time.

dbashford avatar Apr 30 '18 12:04 dbashford

Fixing this would be great. I'm seeing this when using zeit ncc in my build.

kaaloo avatar Nov 27 '19 16:11 kaaloo