I hope I can make myself be understood...
I'm writing a CEP extension for Adobe products. The good thing is that they include NodeJS - which allows me, for example, to access the filesystem.
Now I want to use a js library that has dependencies on NodeJS (crypto, fs and path). The problem is that within the Adobe extension, all NodeJS functionality is accessible through cep_node.crypto (for example).
The js library that I want to use doesn't know that, naturally. So it tells me:
ERROR in ./node_modules/dynamsoft-javascript-barcode/dist/dbr.min.js Module not found: Error: Can't resolve 'crypto' in '.\node_modules\dynamsoft-javascript-barcode\dist'
The question is - how can I kind of overwrite the reference 'crypto' for example - so it gets accessed by cep_node.crypto?