Skip to content

Commit

Permalink
Mention Got being ESM in the readme
Browse files Browse the repository at this point in the history
Fixes #1976
  • Loading branch information
sindresorhus committed Feb 5, 2022
1 parent 228d7ef commit c8902ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ For browser usage, we recommend [Ky](https://github.com/sindresorhus/ky) by the

## Install

```sh
npm install got
```
$ npm install got
```

**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you'll have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) or use the [dynamic `import()`](https://v8.dev/features/dynamic-import) function. Please don't open issues for questions regarding CommonJS / ESM. You can also use [Got v11](https://github.com/sindresorhus/got/tree/v11.8.3) instead which is pretty stable.

## Take a peek

Expand Down

0 comments on commit c8902ba

Please sign in to comment.