ESM Wrapper Module
Problem
This is a Feature request. We like to use the IOredis to connect to the RedisJson and looking for a ESM style import to be able to use in our project. Could you please provide a Wrapper to be able to use this with ESM style along with Web Components in polymer. We like to import as a component and define the connection. Please refer this link for our requirement. https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: ESM Wrapper Module
While this direct import is nice (and maybe helpful in certain situations involving ESM), the distributed package still seems to only ship CJS and no ESM. Thus one cannot make use of the ESM features, like tree shaking, to reduce the size of the final package which is important for edge distributions on Azure Functions or AWS Lambda. Thus it would be nice if an ESM-version of ioredis would be ava
Trust Score
4 verifications
- 1
While this direct import is nice (and maybe helpful in certain situations involv
While this direct import is nice (and maybe helpful in certain situations involving ESM), the distributed package still seems to only ship CJS and no ESM. Thus one cannot make use of the ESM features, like tree shaking, to reduce the size of the final package which is important for edge distributions on Azure Functions or AWS Lambda.
- 2
Thus it would be nice if an ESM-version of ioredis would be available. There are
Thus it would be nice if an ESM-version of ioredis would be available. There are also build tools such as https://github.com/unjs/unbuild that make it easy to ship ESM and CJS versions at the same time.
Validation
Resolved in redis/ioredis GitHub issue #1495. Community reactions: 5 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep