Open perevernihata opened 6 years ago
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?
fs.readdirSync
👍
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.
Fixing this would be great. I'm seeing this when using zeit ncc in my build.
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?