From 150e92fe45e45519abf6d8d6e1899dc4ddf8447d Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Sun, 16 Feb 2025 15:31:57 +0800 Subject: [PATCH] Docs: Add example for module worker (#17126) --- docs/browser.md | 36 +++++++++++++---- .../versioned_docs/version-stable/browser.md | 40 +++++++++++++++---- 2 files changed, 61 insertions(+), 15 deletions(-) diff --git a/docs/browser.md b/docs/browser.md index 6a4450d52..f7a369667 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -3,6 +3,9 @@ id: browser title: Browser --- +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + Run Prettier in the browser using its **standalone** version. This version doesn’t depend on Node.js. It only formats the code and has no support for config files, ignore files, CLI usage, or automatic loading of plugins. The standalone version comes as: @@ -48,7 +51,7 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack ```html