Skip to content

Commit adbd103

Browse files
authored
docs: update instructions for ESM module
Closes #1632
1 parent 3a4c7f9 commit adbd103

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ npm install --save-dev @types/node
116116
```javascript
117117
// Import ioredis.
118118
// You can also use `import Redis from "ioredis"`
119-
// if your project is an ESM module or a TypeScript project.
119+
// if your project is a TypeScript project,
120+
// or `import { default as Redis } from "ioredis"`
121+
// if it is an ESM module.
120122
const Redis = require("ioredis");
121123

122124
// Create a Redis instance.

0 commit comments

Comments
 (0)