@ imports don't work with webworkers
Closed this issue · 2 comments
robert-cronin commented
Another issue with @
imports.
The web worker says it can't find the util
file which has some common crypto constants. So I have just left it as a standard relative import. This
Full error:
Error: Cannot find module '@encryptedfs/util'
Require stack:
- /home/<user>/Documents/github/js-encryptedfs/src/EncryptedFSCrypto.ts
- /home/<user>/Documents/github/js-encryptedfs/src/EncryptedFSCryptoWorker.ts
- /home/<user>/Documents/github/js-encryptedfs/[worker eval]
robert-cronin commented
This is undoubtedly an issue with threads.js
since it handles loading the web worker files at runtime. I just haven't found a solution as yet.
robert-cronin commented
This is now redundant as encryptedfs no longer uses tsconfig paths.