From cffcf1f254e3afffc91f7eec376319bdff18fd9e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 27 May 2022 16:27:08 +0700 Subject: [PATCH] Add note about ESM --- readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.md b/readme.md index 6c279776..c4c5b2b8 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,10 @@ We accept contributions for commonly used modern file formats, not historical or npm install file-type ``` +**This package is a ESM package. Your project needs to be ESM too. [Read more](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** + +If you use it with Webpack, you need the latest Webpack version and ensure you configure it correctly for ESM. + ## Usage #### Node.js