aboutsummaryrefslogtreecommitdiff
path: root/docs/guide/usage.md
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2025-08-16 03:02:45 +0200
committerGitHub <[email protected]>2025-08-16 01:02:45 +0000
commitb16dd9a2ef1373478e51b14b019843394c6db85d (patch)
tree83d3a189c62699d35c1df079ec1a284e2c060309 /docs/guide/usage.md
parent9783d95a8e43c45bc44c5c0c546b250b6c2ae140 (diff)
downloadfaker-b16dd9a2ef1373478e51b14b019843394c6db85d.tar.xz
faker-b16dd9a2ef1373478e51b14b019843394c6db85d.zip
docs: update migration guide with findings from playground update (#3587)
Diffstat (limited to 'docs/guide/usage.md')
-rw-r--r--docs/guide/usage.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/guide/usage.md b/docs/guide/usage.md
index c6dfb4d8..9168e752 100644
--- a/docs/guide/usage.md
+++ b/docs/guide/usage.md
@@ -99,15 +99,28 @@ You can use Faker without it, but we don't have dedicated error messages for wro
In order to have Faker working properly, you need to check if these `compilerOptions` are set correctly in your `tsconfig` file:
-```json
+::: code-group
+
+```json [esm]
{
"compilerOptions": {
- "moduleResolution": "Bundler", // "Node10", "Node16" or "NodeNext"
+ "moduleResolution": "Bundler", // or "Node10", "Node16", "Node20", "NodeNext"
"strict": true // Optional, but recommended
}
}
```
+```json [cjs]
+{
+ "compilerOptions": {
+ "moduleResolution": "Bundler", // or "Node20" or "NodeNext"
+ "strict": true // Optional, but recommended
+ }
+}
+```
+
+:::
+
## Reproducible results
Normally Faker will give you different random values each time it is used.