diff --git a/.prettierrc.js b/.prettierrc.js
index c491be0fc..9a75c3a09 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -1,6 +1,6 @@
// https://prettier.io/docs/en/options.html
-module.exports = {
+export default {
plugins: ["./node_modules/prettier-plugin-jsdoc/dist/index.js"],
// https://github.com/hosseinmd/prettier-plugin-jsdoc#tsdoc
tsdoc: true,
diff --git a/README.md b/README.md
index 28e456ba8..2a37f1642 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,10 @@ Instead of using a package manager, you may also import the library directly int
After installing `meilisearch-js`, you must import it into your application. There are many ways of doing that depending on your development environment.
+> [!WARNING]
+> - [default export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export#using_the_default_export) is deprecated and will be removed in a future version https://github.com/meilisearch/meilisearch-js/issues/1789
+> - exports will stop being directly available on the global object (usually `window`) https://github.com/meilisearch/meilisearch-js/issues/1806
+
#### `import` syntax
Usage in an ES module environment:
@@ -89,7 +93,7 @@ Usage in an HTML (or alike) file:
```html
+
diff --git a/tests/env/esm/src/index.js b/tests/env/esm/src/index.js
index 52c945e79..4907ea75b 100644
--- a/tests/env/esm/src/index.js
+++ b/tests/env/esm/src/index.js
@@ -1,9 +1,8 @@
-import { MeiliSearch } from '../../../../'
-import * as DefaultMeiliSearch from '../../../../'
-import { generateTenantToken } from '../../../../dist/bundles/token.mjs'
+import { MeiliSearch, default as DefaultMeiliSearch } from '../../../../dist/esm/index.js'
+import { generateTenantToken } from '../../../../dist/esm/token.js'
const client = new MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
-const defaultClient = new DefaultMeiliSearch.MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
+const defaultClient = new DefaultMeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
generateTenantToken({ apiKey: 'masterKey', apiKeyUid:'e489fe16-3381-431b-bee3-00430192915d' })
.then((token) => console.log({ client, token, defaultClient }))
.catch((error) => {
diff --git a/tests/env/express/.gitignore b/tests/env/express/.gitignore
index 3c3629e64..4e1a38b5a 100644
--- a/tests/env/express/.gitignore
+++ b/tests/env/express/.gitignore
@@ -1 +1,2 @@
node_modules
+public/index.min.js
diff --git a/tests/env/express/public/headers.html b/tests/env/express/public/headers.html
index 798ffbad8..8ea4cb005 100644
--- a/tests/env/express/public/headers.html
+++ b/tests/env/express/public/headers.html
@@ -13,10 +13,10 @@