Skip to content

Commit

Permalink
docs(website): update note sections
Browse files Browse the repository at this point in the history
  • Loading branch information
xDivisionByZerox committed Sep 14, 2022
1 parent cdb44e0 commit 96777a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const randomEmail = faker.internet.email(); // Kassandra.Haley@erich.biz
</script>
```

:::tip Note
:::note
Using the browser is great for experimenting 👍. However, due to all of the strings Faker uses to generate fake data, **Faker is a large package**. It's `> 5 MiB` minified. **Please avoid deploying the full Faker in your web app.**
:::

Expand All @@ -47,7 +47,7 @@ const randomName = faker.name.findName(); // Willie Bahringer
const randomEmail = faker.internet.email(); // Tomasa_Ferry14@hotmail.com
```

:::tip Note
:::note
It is highly recommended to use version tags when importing libraries in Deno, e.g: `import { faker } from "https://cdn.skypack.dev/@faker-js/faker@v7.4.0"`. Add `?dts` to import with type definitions: `import { faker } from "https://cdn.skypack.dev/@faker-js/faker@v7.4.0?dts"`.
:::

Expand Down

0 comments on commit 96777a2

Please sign in to comment.