diff options
| author | Shinigami <[email protected]> | 2022-01-24 20:04:55 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-24 20:04:55 +0100 |
| commit | 12e33654d183889459d51e9f44c39e51cf7c3bb3 (patch) | |
| tree | 4d55ef5c8fd444f1575baf73028bdecce84497c5 /docs | |
| parent | a3792251766ed9a87a59c760ea87f64792e54caa (diff) | |
| download | faker-12e33654d183889459d51e9f44c39e51cf7c3bb3.tar.xz faker-12e33654d183889459d51e9f44c39e51cf7c3bb3.zip | |
build: bundle with esbuild (#257)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/.vitepress/theme/components/Playground.vue | 13 | ||||
| -rw-r--r-- | docs/guide/index.md | 4 |
2 files changed, 5 insertions, 12 deletions
diff --git a/docs/.vitepress/theme/components/Playground.vue b/docs/.vitepress/theme/components/Playground.vue index d872798b..df73e357 100644 --- a/docs/.vitepress/theme/components/Playground.vue +++ b/docs/.vitepress/theme/components/Playground.vue @@ -1,18 +1,11 @@ <script setup> -import { ref } from 'vue'; +import { faker } from '../../../../dist/esm'; -const faker = ref(); -const ready = ref(false); - -import('../../../../dist/faker').then((_faker) => { - window.faker = _faker.default; - faker.value = _faker.default; - ready.value = true; -}); +window.faker = faker; </script> <template> <h2>🚧 Playground under construction 🚧</h2> <h3>window.faker</h3> - <pre v-if="ready">{{ Object.keys(faker) }}</pre> + <pre>{{ Object.keys(faker) }}</pre> </template> diff --git a/docs/guide/index.md b/docs/guide/index.md index ba57fbf7..06044701 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -68,9 +68,9 @@ const randomCard = faker.helpers.createCard(); // An object representing a rando ``` :::tip 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 around `1.57 MB` minified. **Please avoid deploying Faker in your web app.** +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 Faker in your web app.** ::: ## Community -If you have questions or need help, reach out to the community via Discord and GitHub Discussions. +If you have questions or need help, reach out to the community via [Discord](https://discord.com/invite/4qDjAmDj4P) and [GitHub Discussions](https://github.com/faker-js/faker/discussions). |
